This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Wrong owner for archive dirs?

Synchronize files & directories to/from XigmaNAS with minimal data transfer.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
feffer
NewUser
NewUser
Posts: 1
Joined: 05 Jul 2015 05:27
Status: Offline

Wrong owner for archive dirs?

Post by feffer »

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?

Post Reply

Return to “RSYNC”