aboutsummaryrefslogtreecommitdiff
path: root/tests/cases/test_includes.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
commit9e1fb25077a19e347899fa6c0870be91bb0a0a2b (patch)
tree7d59de88b56446c652dd3e6d0644eda523f090cc /tests/cases/test_includes.sh
parentc7a4275791dfc85c7c49ef8418e78f70c5093807 (diff)
downloadrsyncshot-9e1fb25077a19e347899fa6c0870be91bb0a0a2b.tar.gz
rsyncshot-9e1fb25077a19e347899fa6c0870be91bb0a0a2b.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_includes.sh')
0 files changed, 0 insertions, 0 deletions