Displaying 1 result from an estimated 1 matches for "auax".
Did you mean:
ajax
2014 Jan 15
1
rsync -a --update resets status of newer target directories
...system (ext4):
After running the following commands the adjusted ownership of the
subdirectory /tmp/dst/sub below the target directory is overwritten and its
newer modification time is reset to that of the older corresponding source
directory:
####################
mkdir -p /tmp/src/sub
rsync -auAX /tmp/src/ /tmp/dst
# now adjust target and update it's mtime
chown nobody /tmp/dst/sub
touch /tmp/dst/sub
# mtime and ownership gets reset to root during next rsync:
rsync -auAX /tmp/src/ /tmp/dst
####################
This cought me by surprise, as I expected the --update option to c...