Closed rjwaters147 closed 1 week ago
If you've changed retention parameters, the old settings can still be in effect. Solution
If you've changed retention parameters, the old settings can still be in effect. Solution
Thank you for your response and I did see that prior to posting. I didn't think I changed the parameters but I double checked just to be sure.
Here's the sanoid.conf
file from /mnt/user/system/sanoid/cache_appdata/
[cache/appdata]
use_template = production
recursive = yes
[template_production]
hourly = 0
daily = 4
weekly = 3
monthly = 2
yearly = 0
autosnap = yes
autoprune = yes
I haven't made really any adjustments to the script besides updating it a few months ago after the "Merge pull request https://github.com/SpaceinvaderOne/Unraid_ZFS_Dataset_Snapshot_and_Replications/pull/29 from bobokun/patch-1" was added.
I noticed this issue awhile ago and I've been putting off troubleshooting it and I certainly have enough storage so that's not an issue. I just simply don't need that long of retention and the rsync folders just incrementing forever will inevitably become an issue even if it won't be in the near future.
I've been using this script for a while and I absolutely love it! However, I've encountered a small issue that I hope I can get help with.
It seems that my rsync incremental backups are not being removed in accordance with the retention policy defined for the ZFS snapshots. Specifically, I store my backups in
/mnt/user/backup/rsync
, and I’ve noticed that dated backups going all the way back to 03/24 are still present.I would like to have my rsync folders follow the same retention policy as the snapshots. Essentially, when a snapshot is deleted according to the retention rules, the corresponding rsync folder should also be removed.
Is it possible to modify the script so that the rsync folders are deleted at the same time as their corresponding snapshots? Any guidance or modifications you can provide would be greatly appreciated.
Here's the user-defined variables that I use: