aboutsummaryrefslogtreecommitdiff
path: root/tests/cases/test_backup.sh
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-02-12 09:01:19 -0600
committerCraig Jennings <c@cjennings.net>2026-02-12 09:01:19 -0600
commitac950facc08dbaf8bdda7431d434a16f4d02b222 (patch)
tree7d59de88b56446c652dd3e6d0644eda523f090cc /tests/cases/test_backup.sh
parent819a8e36263bbbed182f20040555ba2644dba1be (diff)
downloadrsyncshot-ac950facc08dbaf8bdda7431d434a16f4d02b222.tar.gz
rsyncshot-ac950facc08dbaf8bdda7431d434a16f4d02b222.zip
Fix snapshot rotation failure on remote filesystems
Snapshots with read-only permissions (from chmod -w at creation) and internal dirs with restrictive modes (e.g. /etc at 555) prevented rm -rf from deleting old snapshots during rotation. This caused cascading mv failures and silent rotation breakage. - Add chmod -R u+w before rm -rf of oldest snapshot - Clean up orphan snapshots beyond retention count - Add error checking on rm, mv, and cp -al operations
Diffstat (limited to 'tests/cases/test_backup.sh')
0 files changed, 0 insertions, 0 deletions