liveboot_rsync facilitates rsync module whileas dcmanager uses
a dedicated user to sync files via SSH. this causes rsync daemon
on mgmt1 to reset permissions in such a way that dcmanager isn't
capable of resetting the mtime value of "." (parent directory of
destination) and hence throws error in UI. dcmanager doesn't use
the same rsync options (yet), which could make sense to have both
sources operating the same way.
#
if ping -c 1 $(echo $1 | sed -s 's#.*@\(.*\)/.*/#\1#' ) > /dev/null ; then
echo "Now rsyncing results to $1 ..."
- rsync --password-file /etc/rsynclivebuild-send.pass -avv --delete $RSYNC_FILTER $RSYNC_SRC/ rsync://$1
+ # do not preserve time, owner and group in favor of dcmanager
+ # else parent directory will have changed permissions and dcmanager will throw errors
+ rsync --password-file /etc/rsynclivebuild-send.pass -rlpDvv --delete $RSYNC_FILTER $RSYNC_SRC/ rsync://$1
figlet "$2 OK"
else
echo "Warning: $1 down."