From 90012e0b7d8c03ca32d30427b3c2f8737b4e9524 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 3 Aug 2009 22:41:19 +0200 Subject: [PATCH] buildd: update rsync options, use FAI timestamp style --- buildd/functions.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/buildd/functions.sh b/buildd/functions.sh index c7d9ebc..36d71e7 100755 --- a/buildd/functions.sh +++ b/buildd/functions.sh @@ -24,7 +24,7 @@ type -p mutt 1>/dev/null 2>&1 || die "mutt binary not found. Exiting." # some defaults: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 -DATE="$(date +%Y%m%d)" +DATE=$(date +'%Y%m%d_%H%M%S') TMP_DIR="$(mktemp -d)" MUTT_HEADERS="$(mktemp)" [ -n "$TMP_DIR" ] || die "Could not create \$TMP_DIR. Exiting." @@ -90,8 +90,7 @@ create_logs() { # store logs on remote server: upload_logs() { [ -n "$RSYNC_MIRROR" ] || return 1 - umask 002 - rsync --exclude dmesg.log --times --partial --copy-links -az --quiet /var/log/grml-buildd.* \ + rsync --exclude dmesg.log --times --partial --copy-links -rltDz --quiet /var/log/grml-buildd.* \ $FAI_LOGFILES $GRML_LOGFILE $RSYNC_MIRROR/logs/"${NAME}_${DATE}"/ } -- 2.1.4