rsnapshot / sourceforge-issues

Issues imported from sourceforge. These are just to track down everything on github. After closing all issues, we remove the repo again. Please don't open any issues here!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[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:

  1. rsnapshot sync -> .sync created
  2. rsnapshot level -> level.0 created
  3. rsnapshot sync -> .sync created
  4. rsnapshot level -> level.1 created [unexpected]
  5. rsnapshot sync -> .sync created
  6. rsnapshot level -> Error: could not rename level.0 to level.1

In call 4 it should have just moved .sync to level.0