LoginSignup
9
10

More than 5 years have passed since last update.

tar+pipe+sshでremoteに圧縮しつつ転送

Posted at

サーバーAにいる状態で、サーバーB(10.152.99.222)の好きな場所にカレントディレクトリ以下のファイルをすべて転送する

tar zcf - * | ssh -i ~/.ssh/id_rsa ubuntu@10.152.99.222 "(cd /mnt/hoge/save && tar zxfp - )" 
9
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
10