[Bug] 1 level with 1 retain and sync_first makes level.1 [sf#34]
bebehei opened this issue · comments
Reported by pepa65 on 2012-06-03 08:18 UTC
A configuration with a single backup-level with retain=1 and sync_first=1 will retain a 2 copy, and fail in future calls.
In rsnapshot.conf the only retain line:
retain level 1
sync_first 1
Calls:
- rsnapshot sync -> .sync created
- rsnapshot level -> level.0 created
- rsnapshot sync -> .sync created
- rsnapshot level -> level.1 created [unexpected]
- rsnapshot sync -> .sync created
- rsnapshot level -> Error: could not rename level.0 to level.1
In call 4 it should have just moved .sync to level.0