-x and include-only

jw schultz jw at pegasys.ws
Sat Apr 19 14:47:10 EST 2003

On Fri, Apr 18, 2003 at 09:08:04PM -0700, Mike Fairchild wrote:
> Hello, I tried to follow the instructions in the man page, but it doesn't
> seem to be working for me.  I am trying to use rsync as the core of my
> backup system, remotely connecting to clients over ssh using a key with
> forced rsync command.   The problem is
> that I want to be carefull not to include network mounts and/or cd/dvds.
> But, I do want to include seperate
> mounts, such as /boot and /home. Basicly I want to back up the root, not
> crossing into any other filesystems, except the ones I specify. So i
> thought by
> running: rsync --include-from=include.txt -aRe ssh remote:/ /backup_dir/
> where include.txt looks something like:
> +/home/*
> +/boot/
> - /*
> I could include only the specified directories and exclude
> everything else. However, when I run this it excludes everyting.
> I want to be able to make an include only list, but this still (if I
> could get it to work) won't catch
> a case where there is a mount in an unexpected place.  If I run with the
> -x option I don't get the home directories.
>   Anyone know why my include only list isn't working or have any great
> ideas for rsyncing only specified mount points and no others?
> -Michael

Because you have excluded too much.  If you must backup
everything from / without -x it would be much simpler to
explicitly exclude what you don't want.

- /proc/
- /sysfs/
- /media/
- /mnt/

and so on.

	J.W. Schultz            Pegasystems Technologies
	email address:		jw at pegasys.ws

		Remember Cernan and Schmitt

More information about the rsync mailing list