Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rsync and the exclusión of files

Status
Not open for further replies.

stla

IS-IT--Management
Joined
Mar 12, 2003
Messages
190
Location
DE
Does anyone know how to exclude the synchronisation of certain files when running rsync?

Here is my script (it is ignoring my exclusions):

cd /usr/freeware/bin
./rsync -a --delete --exclude-from=/exclsusions /source /destination

My exclusion file looks like this:

/source/.*
/source/Network Trash
 
I've just resolved the issue:

My exclude file needed to be in "/exclusion" quotations.

And, the exclusion file doesn't need the path:

.*
Network Trash
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top