Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to transfer a directory from my local server to a remote server on the exact same place on the remote server. In the directory, there are a lot of different users involved and I want to preserve those.

What command do I have to use then and will Rsync be the smartest option.

For reference, the dir is /home/minecraft/multicraft/servers/

share|improve this question

1 Answer 1

Rsync has the -a or achive option that will maintain permissions for you as well as a few other things. To just maintain permissions, use -p. Read the man page for rsync and it explains it all.

share|improve this answer
2  
Plus one for RTFM –  Lucas Kauffman Mar 21 '13 at 14:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.