Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
SCP help... server to server retain permissions
I am replacing a content server, I have several gig's of data I am copying over from the old server to the new server. What I am wondering is...
Isn't there a way to scp all the files over and have the files keep there original permissions?
Thanks in advance...
Your best bet would be to tar up the files first. You can preserve the permissions and also transferring one file has less overhead on the network than many smaller file.
Try the p and s switches on tar -Code:
tar -cvfps scp_archive.tar file1 file2 file3 ...
tar -cvfps scp_archive.tar /content/*
Would this work the same or do I need to list each sub-directory/file?