I want to create a perfect clone of a folder, including permissions and ownership.
I'm using command:
rsync -a <source> <destination>
The sync is missing some of the files that are root access only. How can I make a perfect clone, with everything?
sudo rsync ...
? Or are you also concerned about hard links, sparse files, and ACLs?sudo
command and that your user is configured to be allowed to use it.