rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] PATCH: Exclude if present


From: Jeff Strunk
Subject: Re: [rdiff-backup-users] PATCH: Exclude if present
Date: Sat, 17 Mar 2007 22:47:58 -0500
User-agent: KMail/1.9.5

On Friday 16 March 2007 10:58 pm, address@hidden wrote:
> On Fri, 16 Mar 2007, Jeff Strunk wrote:
> > I just checked to make sure, but your example only excludes files
> > named .NOBACKUP . --exclude-if-present excludes the entire directory.
>
> Ahh, so you place a .NOBACKUP file in directories which should not be
> backed up?  I misunderstood your intent.  I thought it simply did not
> backup directories named .NOBACKUP so you might put your un-important
> files in /mnt/data/.NOBACKUP/foo/bar/whatever.
>
> I think I like the ability of both options; it makes it easy for users to
> exclude directories without breaking their director hierarchy.  Do I
> understand correctly what is happening here?

This is correct.

>
> -Eric
>
> > Example:
> > $ ls -a test1
> > .  ..  file1  test2  test4
> > $ ls -a test1/test2
> > .  ..  file1  .NOBACKUP  test3
> > $ /tmp/bin/rdiff-backup --exclude /**/.NOBACKUP /tmp/test1
> > /tmp/backup_test $ ls -a  backup_test
> > .  ..  file1  rdiff-backup-data  test2  test4
> > $ ls -a  backup_test/test2/
> > .  ..  file1  test3
> > $ /tmp/bin/rdiff-backup --exclude-if-present .NOBACKUP /tmp/test1
> > /tmp/backup_test2 $ ls -a  backup_test2
> > .  ..  file1  rdiff-backup-data  test4
> >
> > -Jeff
> >
> > On Friday 16 March 2007 6:20 pm, address@hidden wrote:
> >> How similar to this is rdiff-backup --exclude /**/.NOBACKUP ?
> >>
> >> -Eric
> >>
> >> On Thu, 15 Mar 2007, dean gaudet wrote:
> >>> excellent, i've wanted this feature... i'll apply it next time i'm
> >>> running through patches.  any chance you could do a 1.1.x port as well?
> >>>
> >>> thanks
> >>> -dean
> >>>
> >>> On Thu, 15 Mar 2007, Jeff Strunk wrote:
> >>>> I have a small contribution to make in the form of a simple selection
> >>>> function.
> >>>>
> >>>> My company has found that we needed a way for users to say that
> >>>> particular directories shouldn't get backed up. The attached patch
> >>>> adds the --exclude-if-present option. It has been tested with 1.0.4
> >>>> and 1.0.5.
> >>>>
> >>>> I documented it on the wiki at
> >>>> http://wiki.rdiff-backup.org/wiki/index.php/ExcludeIfPresent .
> >>>>
> >>>> Thanks,
> >>>> Jeff Strunk
> >>>> IT Administrator
> >>>> Enthought, Inc.
> >>>
> >>> _______________________________________________
> >>> rdiff-backup-users mailing list at address@hidden
> >>> http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
> >>> Wiki URL:
> >>> http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki




reply via email to

[Prev in Thread] Current Thread [Next in Thread]