Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for "remote backups to keep"? #167

Open
vojeroen opened this issue Dec 2, 2024 · 0 comments
Open

Option for "remote backups to keep"? #167

vojeroen opened this issue Dec 2, 2024 · 0 comments

Comments

@vojeroen
Copy link

vojeroen commented Dec 2, 2024

There is an option in the config for the SSH copy to set "local backups to keep". In order to avoid my backup location to grow indefinitely in size, I'm interested in having an option in the config to set "remote backups to keep", with a similar behavior as the option for local backups but for the remote server.

This can be resolved with custom scripts in the backup side as well, but it is easier (and imho cleaner) to do this cleanup straight from HA. Is this something you might consider adding?

As an alternative, having the possibility to set custom options to rsync would also be great. My rsync setup uses a non-standard port which the add-on doesn't seem to handle. Previously (I'm migrating from a container-based HA setup), I was running this to copy to (and clean) my remote backup location: rsync -Aaxv --numeric-ids --delete --rsh="ssh -p 2205" <HA BACKUP DIR> <REMOTE TARGET>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant