mugfu

it has nothing to do with mugs 
Filed under

ssh

 

Stupid SSH Tricks

I recently needed to backup a large directory's worth of data to another host over the network.  You can pipe data into ssh via stdin, which will send it over the SSH channel to the remote side, and you can execute an arbitrary command or shell built-in on the remote side:

tar cvzf - /mydir | ssh myhost.com "cat > backup.tar.gz"

Loading mentions Retweet
Filed under  //   backup   linux   ssh   technology   tips   unix  

Comments [0]