(Hidden by Administrator)
Bug 1108314 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
(Hidden by Administrator)
Humm, I don't know why one would be doing sudo as root? I would do something this... su -c "rsync -av '--include=*.gz' '--exclude=*' --remove-source-files -e 'ssh -o StrictHostKeyChecking=no' /var/log/zeus/ logpull@metrics-logger1.private.scl3.mozilla.com:/data/stats" logpush [root@zlb1.ops.pek1 ~]# bash -x /usr/local/bin/rsync_files.sh + LOCKFILE=/tmp/rsync.lock ++ hostname + HOSTNAME=zlb1.ops.pek1.mozilla.com + DIR=/var/log/zeus + LOGSERVER=metrics-logger1.private.scl3.mozilla.com + create_lock /tmp/rsync.lock + LOCK_NAME=/tmp/rsync.lock + [[ -e /tmp/rsync.lock ]] + echo 22158 + return 0 + cd /var/log/zeus + find /var/log/zeus -type f -name '*.access*' -mmin +30 '!' -name '*gz' -print0 + xargs -0 -r -P 2 -n 1 nice -n 10 gzip + find /var/log/zeus -type f -name '*.access*.gz' -print0 + xargs -0 -r chown logpull + RESULTLOGDIR=/var/log/rsync + '[' '!' -d /var/log/rsync ']' ++ date +%Y-%m-%d-%H + RESULTLOG=/var/log/rsync/rsync-metrics-logger1.private.scl3.mozilla.com-2014-12-07-00 + sudo -u logpull rsync -av '--include=*.gz' '--exclude=*' --remove-source-files -e 'ssh -o StrictHostKeyChecking=no' /var/log/zeus/ logpull@metrics-logger1.private.scl3.mozilla.com:/data/stats/logs/zlb1.ops.pek1.mozilla.com/ + '[' 0 -ne 0 ']' + rm -f /tmp/rsync.lock [root@zlb1.ops.pek1 ~]# crontab -l | grep rsync 45 * * * * /usr/local/bin/rsync_files.sh [root@zlb1.ops.pek1 ~]#