Talk:Rsnapshot

Move to base config file
I think that for correctly rotate rsnapshot need to know all the "intervals" now "retain" params. As stated in http://rsnapshot.org/howto/1.2/rsnapshot-HOWTO.en.html#how_it_works
 * Each subsequent time rsnapshot is run with the hourly command, it will rotate the hourly.X directories, and then “copy” the contents of the hourly.0 directory (using hard links) into hourly.1.
 * When rsnapshot daily is run, it will rotate all the daily.X directories, then copy the contents of hourly.5 into daily.0.

So probably we need to move them all in the base configuration file. --Bfx81 19:03, 2 July 2012 (UTC)

I was going to suggest the same thing, the man page says the same:

 Backup levels must be specified in the config file in order, from most frequent to least frequent. The first entry is the one which will be synced with the backup points. The subsequent backup levels (e.g., daily, weekly, etc) simply rotate, with each higher backup level pulling from the one below it for its .0 directory.

Example:

retain hourly 6

retain daily  7

retain weekly 4

daily.0/ will be copied from hourly.5/, and weekly.0/ will be copied from daily.6/ hourly.0/ will be rsynced directly from the filesystem.  So all the hierarchical levels of backup show be moved to the base file, and rsnapshot will know which one to run from the argument given to it (monthly/weekly/whatever you name them in the config). --Luscinius (talk) 05:03, 8 November 2013 (UTC)

done + some more intution and pit falls explained --Tillschaefer (talk) 19:32, 16 September 2014 (UTC)

I was the original author of this article. My intent was to save different things at different intervals, which is why I had separate config files for each interval. Indeed, if you want to rotate from shorter intervals to longer intervals, and not just within each interval, you need to specify the different intervals in one config file. The downside here is that it makes the backup process longer for the shortest interval, since you will likely want to process the whole filetree, not just a portion. --Hypnos (talk) 16:06, 14 March 2015 (UTC)