Posterous

mugfu

it has nothing to do with mugs

Filed underlinux

See all posts on Posterous with this tag »

Jason Vasquez


       
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 11 tags »
  • web (1)
Subscribe to this posterous »
Unsubscribe »
Loading...
April 24, 2009

Stupid SSH Tricks

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

Filed under  //

  • backup
  • linux
  • ssh
  • technology
  • tips
  • unix

Comments [0]