Can one run do the whole rotation?
Do we need to have a cron running for each level (daily, weekly, monthly)?
Or could the daily do the weekly and monthly rotation itself?
the daily.0 at this point... it's the same thing.
taken off the daily.0 at this point... it's the same thing.
then delete the oldest (and not more needed) backup of this level.
Just take a look into the log file - it explains what the job does.
Oh! So you mean that when we run #1 (daily) the content is transferred from source, but when #2 (weekly) is ran, the script gets the weekly content from daily.0?
This would mean that you necessarily need to have a daily for the rest of the iteration to work?
the weekly content from daily.0?
rest of the iteration to work?
Yes! Again: take a look into the log file.
[quote] Oh! So you mean that when we run #1 (daily) the content is transferred from source, but when #2 (weekly) is ran, the script gets the weekly content from daily.0?
Yes. rsnapshot has no idea at all what daily, weekly, or the other terms mean, they're just strings. You can call them alpha, beta, gamma, doesn't matter, it's the timing of the cron job which controls the interval stride. When the cron job run, rsnapshot rotates the interval called up by one, then steals the oldest of the previous interval. You can setup a trivial rsnapshot.conf and run things manually a few times to experiment.
Sometime tonight hourly.0 will be hourly.3 and will get renamed to daily.0. Sometime Saturday night what is currently daily.2 will be daily.6, and will be shifted to weekly.0. And so on.