System Admin blog

2/16/2009

tar over ssh

You can use tar over ssh

tar zcvf - /tmp | ssh user@ip_address "cat /backup/tmp.tar.gz"

Or

tar zcvf - /tmp | ssh user@hostname "cat /backup/tmp.tar.gz"

You can also tar and untar to remote host with specific dir.

tar -zcf - /tmp | ssh user@ip_address tar -C /path/to/remote/dir -zxf -
Posted by ah c at 23:30
Labels: Linux

沒有留言:

發佈留言

較新的文章 較舊的文章 首頁
訂閱: 發佈留言 (Atom)

Archive

  • ►  2010 (7)
    • ►  11月 (1)
    • ►  10月 (2)
    • ►  9月 (1)
    • ►  1月 (3)
  • ▼  2009 (17)
    • ►  12月 (2)
    • ►  11月 (1)
    • ►  10月 (1)
    • ►  8月 (1)
    • ►  7月 (2)
    • ►  6月 (1)
    • ▼  2月 (7)
      • ntop 3.3.9 on Fedora 9
      • Dell OpenManage Server Administrator on CentOS 5.2
      • Dell OpenManage Server Administrator on Fedora 8
      • tar over ssh
      • vlan - tagged and untagged
      • .htaccess - Manager can view this page from anywh...
      • IPSEC VPN - Tunnel Mode by using AH and ESP
    • ►  1月 (2)
  • ►  2008 (20)
    • ►  11月 (1)
    • ►  8月 (2)
    • ►  7月 (1)
    • ►  6月 (3)
    • ►  4月 (2)
    • ►  3月 (4)
    • ►  2月 (6)
    • ►  1月 (1)
  • ►  2007 (7)
    • ►  12月 (2)
    • ►  11月 (2)
    • ►  9月 (3)

About Me

ah c
查看我的完整個人檔案

Labels

  • apache (6)
  • bash (4)
  • CentOS (2)
  • Eclipse (1)
  • Java (1)
  • Linux (27)
  • linux backup (1)
  • network (3)
  • Openwrt (1)
  • PHP (2)
  • pstools (3)
  • Pydev (1)
  • Python (1)
  • Samba (1)
  • Shell script (1)
  • smtp (2)
  • ssl (3)
  • TCP/IP (2)
  • Ubuntu (3)
  • vbscript (3)
  • vi (1)
  • VMware (2)
  • windows (7)
「Awesome Inc.」主題. 由 Blogger 提供.