Using include/exclude options

Wayne Davison wayned at
Fri Jun 27 07:41:28 EST 2003

On Thu, Jun 26, 2003 at 12:07:42PM -0700, Jason Williams wrote:
> rsync -avn --include-file=/home/rsyncfile /backupstorage/D/ /home/rsyncbak

The most common failing is people not specifying the excludes relative
to the root of the transfer (it's not relative to the root of the file
system).  Thus, this include:

> /backupstorage/D/CLOSED00/

says to transfer directory /backupstorage/D/backupstorage/D/CLOSED00.
You probably meant to say this:


Also, don't forget to end the list with:

- /*

So that no other dirs/files get sent but the ones you listed.


More information about the rsync mailing list