[CentOS] Limiting files when using rsync

Sun Jan 21 05:30:24 UTC 2007
Mark Schoonover <schoon at amgt.com>

Todd Cary wrote:
> I use the following command to sync the home directory on the two
> computers, however I would like not to send the "dot" files e.g.
> ".ssh".  Can that be done, and if so, how would I construct the
> command line?
> 
> /usr/bin/rsync -av -e ssh /home/ 192.168.0.22:/home/
> 
> Many thanks....
> 
> Todd

Todd,

	I'm pretty sure you need to --exclude '.*' on the command line, buh
I usually put all my excludes in a file and --exclude-from=rsync.excludes.

Thanks!

Mark Schoonover
IS Manager
American Geotechnical
V: 858-450-4040 - F: 714-685-3909 - C: 858-472-3816

"Stop the Earth!! I want off!!"