mercredi 1 octobre 2014

UNIX How to copy entire directory (subdirectories and files) from one location to another and retain permissions


Vote count:

0




I just copied an entire directory structure from one location on my server to another:



cp -r /home/abc/public_html/* /home/xyz/public_html/


That worked fine. Except the dirs & files are now owned by root and the group is root as well.


How do I perform this copy action and retain the dirs & files ownership, groups, and permission settings?



asked 53 secs ago







UNIX How to copy entire directory (subdirectories and files) from one location to another and retain permissions

Aucun commentaire:

Enregistrer un commentaire