Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

A website contains ~40GB images + files which needs to be backed up. Rollbacks need to be possible daily for the last 30 days. And backup server < 1.2TB

My idea is to have one full backup from 30 days ago, then incremental backups for the last 30 days. On each day the last incremental backup is combined with the full backup and a new incremental backup is added.

Can this strategy be implemented with rsync, if so how?

Are there any problems with this plan? A better plan?

PS: Incremental backups, not backup incrementally (which rsync does automatically)

share|improve this question

migrated from stackoverflow.com Jun 22 '11 at 12:48

This question came from our site for professional and enthusiast programmers.

add comment

3 Answers 3

up vote 2 down vote accepted

try looking into rsnapshot, should be in the package repo. It's based on rsync and i'm pretty sure will do what you need.

share|improve this answer
add comment

Also check rdiff-backup. Similar to rsnapshot, with different tradeoffs in terms of disk efficiency and restore speed.

share|improve this answer
add comment

I think you want the backup feature of rsync. It allows you to rename instead of overwriting the old file. Just make the backup extension the date you did the overwrite and your incremental updates will all have the dates built into the files that saved before the new changes were written.

From the man page -b, --backup make backups (see --suffix & --backup-dir) --backup-dir=DIR make backups into hierarchy based in DIR

share|improve this answer
add comment

Your Answer

 
discard

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.