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 - "
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.