From 6b555f3ba7228fd308edf02d1aec156de97c787a Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 27 Nov 2008 20:55:16 +0100 Subject: keep rsync log --- bin/pushpdo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/pushpdo b/bin/pushpdo index 2abde58..be105c9 100755 --- a/bin/pushpdo +++ b/bin/pushpdo @@ -102,8 +102,9 @@ while read MLNAME MHOSTNAME MUSER MPROTO MKEYFILE; do log "Pushing ${MLNAME}" >> ${LOG} # This needs a limited ssh key on the other side, something like # no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,command="rsync --server -vlogDtpr . /srv/mirrors/packages.debian.org/",from="87.106.64.223,2001:8d8:80:11::35d,powell.debian.org" ssh-rsa..... - rsync -e "ssh -i ${MKEYFILE} -${MPROTO}" -av --progress --stats ${MIRRORPATH} ${MUSER}@${MHOSTNAME}:/does/not/matter + rsync -e "ssh -i ${MKEYFILE} -${MPROTO}" -av --progress --stats ${MIRRORPATH} ${MUSER}@${MHOSTNAME}:/does/not/matter > ${LOGDIR}/${MLNAME}.log log "Pushing ${MLNAME} done" >> ${LOG} + savelog ${LOGDIR}${MLNAME}.log set +e done -- cgit v1.2.3