Moving Data Between Machines In a Secure Way

Just learn about some new options moving files between machines using ssh / sftp /scp.

For example, creating an archive, copying it to remote destination, and extracting it in a single command :

$ (cd ~/stuff; tar --create --gzip --file - *) | \
  ssh destination tar --extract --gunzip --file --verbose -C stuff

or :

$ ssh destination cat archive.tgz | \
  (cd ~/stuff; tar --extract --gunzip --file -)


$ scp -pr ~/doc destination:/path/to/doc/ 


$ rsync -e ssh --times *.txt destination: 

With ssh setup properly, these options are secure. However, I am still uncertain about any performance issue, as compare to other enterprise class product, e.g. Connect:Direct.


Filed under: 走在最前

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

RSS 極力推介

  • An error has occurred; the feed is probably down. Try again later.


%d bloggers like this: