[Gllug] excluding files from scp copy

Duncan Anderson duncangareth at yahoo.co.uk
Wed Aug 2 11:18:29 UTC 2006


On Monday, 17 July 2006 21:42, Martin A. Brooks wrote:
> Adrian McMenamin wrote:
> > I'd like to do scp -r user at remote1:/home/user user at remote2:/home/user or
> > similar but not copy the hidden files - is there a way to do this? My
> > google-fu isn't up to the correct search strin
>
> Using scp directly, no, there isn't.   You can have rsync use ssh as the
> trnasport and have rsync exclude the stuff you don't want.
>
> Mart.

Another method would be to use tar piped through ssh.

cheers
Duncan

		
___________________________________________________________ 
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list