is there another way to transfer file with attributes
Hi, I am moving files from one server to another and i need to keep the date and time created and ownership .. scp -p can keep time but scp will not keep ownership.. I found one way is tar and transfer.. is that the only way? thanks henry
Henry Tang wrote:
Hi,
I am moving files from one server to another and i need to keep the date and time created and ownership .. scp -p can keep time but scp will not keep ownership.. I found one way is tar and transfer.. is that the only way?
cp -a?
The Friday 2005-04-15 at 13:07 -0500, Henry Tang wrote:
I am moving files from one server to another and i need to keep the date and time created and ownership .. scp -p can keep time but scp will not keep ownership.. I found one way is tar and transfer.. is that the only way?
Running as root, ftp, perhaps... but it is not secure, of course. rsync seems to do it; from its man page: rsync -avz foo:src/bar /data/tmp This would recursively transfer all files from the direc tory src/bar on the machine foo into the /data/tmp/bar directory on the local machine. The files are transferred in "archive" mode, which ensures that symbolic links, devices, attributes, permissions, ownerships, etc. are preserved in the transfer. Additionally, compression will be used to reduce the size of data portions of the trans fer. -- Cheers, Carlos Robinson
participants (3)
-
Carlos E. R.
-
Henry Tang
-
James Knott