Backup policy by storage location instead of retention policy

hi,

I saw: Allow separate backup schedule per location - Feature Requests - Home Assistant Community feature request is marked as closed and of course I cannot say the requester should be unhapy :slight_smile:

I have cloud storage and would prefer to send a backup to cloud on a weekly basis (with limited number of copies) and have multiple daily backups on a file share locally and then one copy of a daily backup local on HA host. I understand the overhead of producing the backup but there is also bandwidth and backup aging.

I think the current retention setting is on number of copies and there is no way to set up a schedule per storage location? Or is there a workaround?

Probably not 100% in line with backup best practice, but if the house burns down a re-install of HA is probably in order anyway.

Many thanks!

Hello jhhbe,

This is a feature of 2025.5.0…

hello Sir,

Thanks for your response, I read the announcement as number of copies. When I have 7 backups on local NAS and 1 in the cloud, that cloud backup is yesterday.

My system is stable, so my monthly cloud backup has relevance for me. A separate schedule, rather than separate retention, would allow me to go back further in time?

One backup a month, and 12 copies stored on Onedrive
One backup a week, and 52 copies stored on GDrive
Every day backup, and 7 backups stored on Webdav

That would be ideal.

1 Like

Yes, exactly that! But without using the Samba backup addon, Gdrive backup addon and native backup to achieve the different schedules :slight_smile:

Don’t get me wrong, backup has improved a lot, but we we’re talking ‘ideal’.

Only one backup in the HA cloud will be saved at a time. What you replied with it wasn’t clear to me that you understood that.
If you need a special monthly one, it would have to be stored separate. I suggest one of the addons and schedule it that way. Since that option is available now via automations or add-ons, it is not planned to be added to the core back-up stuff.

Ah no, I did not know that on HA cloud it is the latest only. But I’ll admit I was not clear in my ask - so the cloud I was referring to was google, onedrive and not Nabu Casa. Today I do a manual backup to one-drive, I’ll see how far I get with automations. Thx!

Answering my own question, or at least offering a perspective where for my needs I came to a reasonably good conclusion. I’m using the automated backup on a daily schedule while keeping 7 copies on NAS and one on HA locally. (In the automated backup schedule you can set different retention settings per storage location which is very convenient.)
Then I use jcwillox/hassio-rclone-backup: Home Assistant addon to automatically sync backups to remote locations using Rclone which on the first day of the month copies the HA local backup to a cloud service. For me that combines 3-2-1 to a sufficient level and gives me some ageing on backup also.
System is stable so I didn’t go into weekly versions, as then I would need to have a cleanup routine for the cloud backups, now I can do it manually every half year (or not).
@francisp I think the rclone addon would allow you weekly/monthly backups to different cloud providers. A weekly and monthly cron for both locations would simply send a copy of todays backup to the cloud service. I haven’t looked into rclone enough to see if it would handle cleanup of old versions.

PS/ not sure if rclone addon belongs in the overview - it’s not a backup as such, but more file sync/copy service.