压缩直传远程

tar cjvf - /etc | ssh user@remoteip "cat > /home/user/etc.tar.bz"

压缩直传并远程解压

tar cjvf - /etc | ssh user@hostname "tar xvjf - --keep-newer-files"

标签: none

添加新评论