I read the following hint at: http://www.mikerubel.org/computers/rsync_snapshots/#Incremental mv backup.0 backup.1 rsync -a --delete --link-dest=../backup.1 source_directory/ backup.0/ I simply want to maintain a dated backup of a server so that I could always go back to a certain date. I would like to keep this structure for each day for the last seven days, then one weekly snapshot for each week in the month and then each month I would like to have as well. It seems that this method would not use terribly much space in terms of duplicating files, however I am not sure of the --delete portion, it seems that I should remove the delete as I would like to at any point be able to go back in time and look at a snapshot of the server. Is this a correct assessment? And if so, would the more appropriate rsync command go as follows? sudo rsync -azRv -e ssh --exclude-from=/Users/someuser/scripts/Server_Scripts/etc/rsync_exclude --link-dest=../Server_Backup.1 administrative_user@someserver.com:/ Server_Backup.current Thanks much for any help! -George
On Wed 16 Feb 2005, lists@southernohio.net wrote:> > I simply want to maintain a dated backup of a server so that I could > always go back to a certain date. I would like to keep this structure > for each day for the last seven days, then one weekly snapshot for each > week in the month and then each month I would like to have as well.Take a look at http://www.dirvish.org/ which makes it easy to do what you want. It's sort of a wrapper around rsync. Paul Slootman
On Wed, Feb 16, 2005 at 08:24:54PM -0500, lists@southernohio.net wrote:> It seems that this method would not use terribly much space in terms of > duplicating files, however I am not sure of the --delete portionIn your command sequence, you are (properly) moving the existing hierarchy of files out of the way and creating a new hierarchy via rsync, hard-linking it via --link-dest. Thus, there is nothing to delete (because the destination is empty), so the --delete has no effect an can be dropped from the command. What you _don't_ want to do is to rsync into an already existing directory of files using --link-dest; that can cause rsync to change the mod-time/permissions/ownership of existing files that are hard-linked into older days, and that would make them inaccurate for the older days. (Though it would save space.) Others have recommended good backup software, which you can check into. There are some other links on the Resources page of the rsync web site. ..wayne..
at 17.02.2005 2:24 lists@southernohio.net wrote:> I read the following hint at: > http://www.mikerubel.org/computers/rsync_snapshots/#Incremental > > mv backup.0 backup.1 > rsync -a --delete --link-dest=../backup.1 source_directory/ backup.0/ > > > I simply want to maintain a dated backup of a server so that I could > always go back to a certain date. I would like to keep this structure > for each day for the last seven days, then one weekly snapshot for each > week in the month and then each month I would like to have as well.That's what I'm doing since some years. Have a look at http://www.pollux.franken.de/hjb/rsback. rback is an implentation of Mike Rubel's approach written in perl.> Thanks much for any help! > > -Georgehjb :-?
On Thursday 17 February 2005 02:24, lists@southernohio.net wrote:> I read the following hint at: > http://www.mikerubel.org/computers/rsync_snapshots/#Incremental > > mv backup.0 backup.1 > rsync -a --delete --link-dest=../backup.1 source_directory/ backup.0/ > > > I simply want to maintain a dated backup of a server so that I could > always go back to a certain date. I would like to keep this structure > for each day for the last seven days, then one weekly snapshot for each > week in the month and then each month I would like to have as well. >I think you really should check-out http://www.rsnapshot.org. Works great for me to keep hourly, daily, weekly and monthly backups incrementally. Of course based on rsync ;) - Joost