RE: Limiting files when using rsync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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!!"
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux