Guest_imported
New member
- Jan 1, 1970
- 0
Hello everyone, I hope I can get an answer to this. I am looking at doing a remote tar from one system to another. The reason for doing so is to keep the permissions, ownership, and group the same as it is on the original system ....... say I have a directory called /opt/java and I'm wanting to put it on another machine under /home/lmgrif2/java (just as an example) would the following command be correct?
First of all, I would have to be in the /opt file system/directory before doing this command on the original machine ...
tar cvf - java|remsh (machine name copying files to) "cd /home/lmgrif2/; tar xvf -"
Thanks in advance, just making sure I have the right command.
LG
First of all, I would have to be in the /opt file system/directory before doing this command on the original machine ...
tar cvf - java|remsh (machine name copying files to) "cd /home/lmgrif2/; tar xvf -"
Thanks in advance, just making sure I have the right command.
LG