Hello, I'm trying to figure out how to keep a mirror and 7 day incremental backup between to 2 mount points. I want to rsync everything from /mnt/production/ to /mnt/backup/production/ on the same server. Nothing fancy. But , I Want to utilize the --delete option for files that no longer exist on /mnt/production/ that have been on /mnt/backup/production/ for longer then 7 days. I can't use the BACKUPDIR=`date +%A`, multiple directory method, as the amount of data I'm dealing with is to great to kept track of easily that way I need the backup files to be a mirror of the original with 7 days of extra data. If anyone could help I'd really appreciate it. Thanx darcy
There are some notes at http://www.mikerubel.org/computers/rsync_snapshots/#Rsyn and I remember seeing other such approaches (but can't put my finger on them at the moment). Lee C Darcy Bangsund wrote:> Hello, > > I'm trying to figure out how to keep a mirror and 7 day incremental > backup between to 2 mount points. > > I want to rsync everything from /mnt/production/ to > /mnt/backup/production/ on the same server. > Nothing fancy. > > But , > > I Want to utilize the --delete option for files that no longer exist > on /mnt/production/ that have been on /mnt/backup/production/ for > longer then 7 days. > > I can't use the BACKUPDIR=`date +%A`, multiple directory method, as > the amount of data I'm dealing with is to great to kept track of > easily that way > > I need the backup files to be a mirror of the original with 7 days of > extra data. > > If anyone could help I'd really appreciate it. > > Thanx > > darcy
On Sat, Sep 17, 2005 at 01:27:16PM -0400, Darcy Bangsund wrote:> I Want to utilize the --delete option for files that no longer exist on > /mnt/production/ that have been on /mnt/backup/production/ for longer > then 7 days.Your two choices are (1) to use --link-dest into a new directory every day (which shares most of the data using hard-links, but does require 7 days worth of inodes for the whole hierarchy, which may be undesireable) or (2) use --backup and --backup-dir into a new directory every day to put just the changed/deleted files into that backup hierarchy. ..wayne..
And take a look at this tool which is based on this approach: http://www.nathanbullock.org/nathan/rsbackup/index.html> > ---------- Forwarded message ---------- > From: Lee Cullens <lee_cullens@mac.com> > To: Darcy Bangsund <darcy@mrxfx.com> > Date: Sat, 17 Sep 2005 13:45:33 -0400 > Subject: Re: mirror combined with 7 day incremental backup > There are some notes at > http://www.mikerubel.org/computers/rsync_snapshots/#Rsyn and I remember > seeing other such approaches (but can't put my finger on them at the > moment). > > Lee C > > > Darcy Bangsund wrote: > > > Hello, > > > > I'm trying to figure out how to keep a mirror and 7 day incremental > > backup between to 2 mount points. > > > > I want to rsync everything from /mnt/production/ to > > /mnt/backup/production/ on the same server. > > Nothing fancy. > > > > But , > > > > I Want to utilize the --delete option for files that no longer exist > > on /mnt/production/ that have been on /mnt/backup/production/ for > > longer then 7 days. > > > > I can't use the BACKUPDIR=`date +%A`, multiple directory method, as > > the amount of data I'm dealing with is to great to kept track of > > easily that way > > > > I need the backup files to be a mirror of the original with 7 days of > > extra data. > > > > If anyone could help I'd really appreciate it. > > > > Thanx > > > > darcy >