[英]Tar files thru SSH connection
Can anyone help me with this command which i have found out?任何人都可以帮助我使用我发现的这个命令吗? Command is
tar cf - . |ssh -l <TARG_SERVER_USER> <TARG_SERVER> "cd /d1/<INST_NAME>/apps/tech_st; tar xfBp - "
命令是
tar cf - . |ssh -l <TARG_SERVER_USER> <TARG_SERVER> "cd /d1/<INST_NAME>/apps/tech_st; tar xfBp - "
tar cf - . |ssh -l <TARG_SERVER_USER> <TARG_SERVER> "cd /d1/<INST_NAME>/apps/tech_st; tar xfBp - "
Correct me if I'm wrong but as I can see this is going to compress files in current directory while it copies it to destination location right?如果我错了,请纠正我,但正如我所见,这将压缩当前目录中的文件,同时将其复制到目标位置,对吗? Does this means that current files will be intact (not going to be compressed)?
这是否意味着当前文件将完好无损(不会被压缩)?
Thank you谢谢
files in the current location '.'当前位置“.”中的文件are only read and the tar output '-' is send to ssh
仅读取并且 tar 输出“-”被发送到 ssh
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.