copy owner/permission for whole files, folders from another server

enter target folder on server1

cd /var/www
getfacl -R target/ > ~/target.acl

then upload target.acl to destination server
enter destination folder on server2

cd /var/www
setfacl --restore=~/target.acl

done!

Leave a Reply

Your email address will not be published. Required fields are marked *