Now I have a question...
I am creating a backup of my entire owncloud data directory but when I check the result, the ownership and permissions are not the same. What am I doing wrong?
sudo rsync -aAxvhz /media/data/ownclouddata/ /media/backup --delete
On the source it has for one of the folder...
drwxr-xr-x 7 www-data www-data 4.0K Oct 3 14:25 Edwin
And on the destination it has...
drwx------ 2 root root 4.0K Oct 20 07:03 Edwin
???
sudo
is the reason. Look at the permissions. They are also wrong. And the timestamp as well.