Re: copy folder to remote server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,


>> # scp -r /tmp root@xxxxxxxxxx:/tmp/test

I used to use "rcp -rp ..."  but there's an issue with this
(& "scp -r ..." will probably has the same issue) :
the permissioning/ownership & timestamp of the
destination files may not be the same as in the source
despite that "p" (preserve) option is there.

So I used :
tar cvf - . | rsh remote_host 'cd /tmp/test; tar xvf -'
which retains the timestamp/permissioning.

Anyone wants to try with "tar" & "scp"?
tar zcvf -  /usr/local/apache/htdocs | ssh root@xxxxxxx "cat >
/var/www/html/htdocs.tar.gz"
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux