Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am confused with new Rsnapshot configuration. In current version there is a different way of specifiying backup intervals, like so:

retain hourly  2
retain weekly  7
retain monthly 2

I would like to do a manual backup few times a month. I'd like to have 3 archives saved. How should I set up the above code?

share|improve this question
up vote 2 down vote accepted

Short answer: replace this with

retain manual 3

and run rsnapshot manual whenever you'd like to do a backup.

The default configuration defines three different “backup levels.” The idea is that you run rsnapshot hourly every few hours, rsnapshot weekly every week, and rsnapshot monthly every month (usually from cron jobs). When rsnapshot weekly gets run, it moves the oldest hourly backup to a weekly backup; when rsnapshot monthly gets run, it moves the oldest weekly backup to a monthly backup.

The names for these backup levels, however, are totally arbitrary – there's nothing about rsnapshot that requires you to back up hourly, weekly, and daily. So if you just replace the backup levels with one of your own – a manual level – you can just run rsnapshot manual whenever you want, and it'll do a full incremental backup of whatever you've selected in rsnapshot.conf.

There's a lot more information about this in the configuration section of rsnapshot(1) – search for “retain”.

share|improve this answer
EXACTLY what I wanted to know. Thanks Benjamin! – Danijel Sep 14 '12 at 8:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.