You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've used the configuration v2 to setup my restic profile. In particular I have 2 folders that need backup, with different retention policies. An extract of the configuration follows.
I expected to only have 4 Minecraft's snapshots, but I see 16 of them. Also the immich's backups should be less (7 dailies, 2 weeklies, 0 monthly (so far)).
Have I misunderstood how to configure retention policies?
Thanks
EDIT:
in the logs, I see the following, as if no retention policy was specified...
dic 22 03:00:11 helium resticprofile[298921]: 2024/12/22 03:00:11 profile 'minecraft': cleaning up repository using retention information
dic 22 03:00:12 helium resticprofile[299142]: no policy was specified, no snapshots will be removed
resticprofile version resticprofile version 0.29.0
restic version 0.13.1
The text was updated successfully, but these errors were encountered:
From a fast review of the code, it seems that profile.retention has been deprecated, and it is suggested to use profile.forget. I'm surprised that a deprecated section is still not used in any case, though after setting up the forget section and running resticprofile with the forget command (i.e. resticprofile --config /var/backups/helium.resticprofile.yml --profile minecraft forget, it removed the old backups.
I'm keeping the issue open until tomorrow, i.e. the next backup & forget nightly schedule.
The schedule still "forgot" to forget and prune the old backups...
This is the service generated by resticprofile:
[Unit]
Description=resticprofile backup for profile full in ./helium.resticprofile.yml
After=network-online.target
[Service]
Type=notify
WorkingDirectory=/var/backups
ExecStart=/bin/resticprofile --no-prio --no-ansi --config ./helium.resticprofile.yml run-schedule backup@full
Environment="RESTICPROFILE_SCHEDULE_ID=./helium.resticprofile.yml:backup@full"
Environment="HOME=/root"
Environment="SUDO_USER=gfurlan"
I tried to add also forget@full (manually trying sudo resticprofile --no-prio --no-ansi --dry-run --config ./helium.resticprofile.yml run-schedule backup@full forget@full), but the dry-run didn't write about the forget step.
Am I missing anything?
EDIT:
Ok, I've scheduled the 'forget' step separately. Is there a way to concatenate the two actions?
Hello everyone.
I've used the configuration v2 to setup my restic profile. In particular I have 2 folders that need backup, with different retention policies. An extract of the configuration follows.
This is the list of snapshots I have:
I expected to only have 4 Minecraft's snapshots, but I see 16 of them. Also the immich's backups should be less (7 dailies, 2 weeklies, 0 monthly (so far)).
Have I misunderstood how to configure retention policies?
Thanks
EDIT:
in the logs, I see the following, as if no retention policy was specified...
resticprofile version resticprofile version 0.29.0
restic version 0.13.1
The text was updated successfully, but these errors were encountered: