Using rsync for successful remote backup, but have one problem. The target dirs are set to mirror the source ones and any changed or deleted files are archived into an archive dir.
Code: Select all
rsync -avuzb -HAX -L --no-o -r --delete --files-from=$Source --exclude-from=$Exclude --backup-dir=$ARK/${TODAY} ws-client-machine:/home/user/data/ /media/data/
For some reason the archive dirs get "root" as the owner instead of the desired "user." Have tried with and without the "--no-o" option. Ownership of the mirrored target dirs is correct...it matches their source dirs.
The script is run through root's crontab (necessary, I think).
How is the owner.group of "--backup-dir=$ARK/${TODAY}" set?