mugfu

it has nothing to do with mugs

Filed underssh

See all posts on Posterous with this tag »

Jason Vasquez


TwitterFacebookPicasaYoutube
Jason Vasquez's profile »

Tags

  • technology (4)
  • tips (2)
  • backup (1)
  • java (1)
  • life (1)
  • linux (1)
  • pics (1)
  • ssh (1)
  • sun (1)
  • unix (1)
  • View all 12 tags »
  • web (1)
  • xcode (1)

Archive

2011 (1)
October (1)
2010 (2)
January (2)
2009 (5)
October (1)
August (1)
April (1)
March (2)
April 24, 2009

Stupid SSH Tricks

  • Edit
  • Delete
  • Tags
  • Autopost
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"

Filed under  //

  • backup
  • linux
  • ssh
  • technology
  • tips
  • unix
Tweet
  • 0 responses
  • Like
  • Comment