[Cialug] Rsync problem
Adam Hill
adam at diginc.us
Fri Aug 30 13:22:27 CDT 2013
Try triple stars:
o a trailing "dir_name/***" will match both the directory (as
if "dir_name/" had been specified) and everything in the directory (as if
"dir_name/**" had been specified). This behavior was added in version
2.6.7.
On Fri, Aug 30, 2013 at 1:15 PM, L. V. Lammert <lvl at omnitec.net> wrote:
> Normally I use rsnapshot to backup an entire system, excluding things like
> /dev, /proc, .. but ran into a problem with other admins creating dirs in
> / which fubars the backup job [i.e. a large filesystem mounted that is not
> part of the backup job].
>
> Trying to 'reverse' the rsync job, but just cannot get it to work
> properly. For example, need to backup:
>
> /bin
> /sbin
> /root
>
> BUT nothing else, .. tried:
>
> exclude *
> include /bin
> include /sbin
> include /root
>
> Creates directories, but nothing else; With exclude * at the end of the
> list, nothing copies at all.
>
> exclude *
> include /bin/**
> include /sbin/**
> include /root/**
>
> Again, only directories; with the exclude at the end of the list, nothing
> copies at all.
>
> Would anyone have a cluestick?
>
> Thanks!
>
> Lee
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
More information about the Cialug
mailing list