Showing posts with label ssh. Show all posts
Showing posts with label ssh. Show all posts

Friday, August 29, 2014

To copy everything (including soft and hard symbolic links) with rsync, from remote host to local host, with linux

To copy everything (including soft and hard symbolic links) with rsync, from remote host to local host, with Linux

rsync -azHv user@remotehost:/some/path/to/folder /some/local/destination

a -- include soft symbolic link
H -- include hard symbolic link
v -- verbose
z -- compression

Wednesday, June 4, 2014

Secure Copy (scp) from remote site to local host

To copy file foo.txt from remote host to localhost during ssh session:

scp foo.txt username@ip_address:/some/remote/directory