Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 need a backup script (or tool) for my Ubuntu Server. Simple packing a folder into a tar.gz cron.d is quite easy to do.

But the problem is, with every update there are several 100 MB of data. So I tought of having a incremental backup, with a daily, weekly and monthly rotation.

More concrete requirement: 1. On Sunday do full backup 2. On Monday, Tuesday, Wednesday, Thurstday, Friday and Saturday do incremental/differential backups only 3. On next sunday do either full backup or just backup the differentiate between this and last week (not sure yet what's better here. Data don't change that often other than the mail folder, latter one would significantly save disk space, but result in more work rolling the data back to a certain point). Rotate the last 4 weeks 4. On every 1st of a month, do a full backup. Keep rotates of the last 3 months

Either one (a script for cron.d or a application of it's own) is welcome. Would be preffered if it can be installed via the OS' package manager without having to compile yourself too much.

The system in question is an Ubuntu 8.04 LTS (newer not available due to virtualization and the virtualisation software being bound to that kernel)

share|improve this question
up vote 1 down vote accepted

You may want to try rsnapshot: It makes use of rsync and hardlinks to achieve system snapshots, which is basically what you need. It also comes in the repositories of Ubuntu.

share|improve this answer

Sounds like rsnapshot will do much of what you want with minimal configuration. It essentially does a full backup every day, but because it stores backups with hard links, and uses rsync to efficiently transfer files, it's pretty efficient both space-wise and network-wise if your files to be backed up aren't changing much.

share|improve this answer

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.