[Cialug] Rsync problem

L. V. Lammert lvl at omnitec.net
Fri Aug 30 13:15:27 CDT 2013


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



More information about the Cialug mailing list