-
Notifications
You must be signed in to change notification settings - Fork 21
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
Keep x files #31
Comments
Went into the docker and created in '/root/.config/rclone' the 'rclone.conf' file also
The command rclone delete is working :). Did a --dry-run for testing. |
Solved. Add keep_days in "hass-auto-backup" add-on. |
Yeah sorry I've been quite busy the past few weeks, but yes thats the way to go. You could also possibly use |
Thats an option. But still how do I add that I want keep x days? |
It will be something like this then?
|
Yeah that'd be the way, except you'd need to use - name: Delete partial backups older then 3 days
schedule: 0 23 * * *
command: delete
extra_flags:
- "--min-age=3d"
# you could even use include to target backups by name
include:
- DailyBackup*
sources:
- /share/backup/partial
destination: minio:ha/partial |
I'm using your suggestion in previous post: But this gives the following error: If i remove the sources argument, it fails to start the addon due to the missing sources. Any suggestion how to overcome this? |
@Adrianni I've just installed the addon and stumbled across this issue. When I tried the code above, I got the same error. I'll probably fine-tune this further, but this combination works for me:
Basically, I've set no |
Doesn't this result in deleting files in home assistant (local source) instead of remote destination? My goal is to delete old files on destination. I've got Auto backup-integration taking care of the part deleting old files on HA (local source). |
@Adrianni It's deleting both:
So, this deletes the files first in Home Assistant and then via sync in my Nextcloud instance. I haven't tested it extensively in the short time I've been using it, but all test runs have been successful so far. Auto Backup can also only delete backups that have been created by the integration itself, as far as I can tell: jcwillox/hass-auto-backup#119 That's why I came up with the solution above in the first place. |
Is your feature request related to a problem? Please describe.
not related to a problem
Describe the solution you'd like
Would be nice to add a extra option in jobs config:
I created backups with date. And want keep last 3 files.
or in this part
On my VPS site I use clone also to copy backups to minio and use this command to remove files older then:
or in the config.conf file hardcoded for every job.
Describe alternatives you've considered
remove files manual from the destination location.
Additional context
No response
The text was updated successfully, but these errors were encountered: