X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Fbackup.in;h=8884148fe3dee65daae5ae9d9a3811dd73a5e38e;hb=c8b0fd28c2f4a43fe5c7a8fb2432595fbd8d3d88;hp=c646305add9505b2d2d34ffb05d579cd357dccd6;hpb=c6096f64c524ce2d0b365375b3d105cd7a79ce41;p=chaz%2Ftar diff --git a/scripts/backup.in b/scripts/backup.in index c646305..8884148 100644 --- a/scripts/backup.in +++ b/scripts/backup.in @@ -19,7 +19,7 @@ # Load library routines SYSCONFDIR=${SYSCONFDIR-@sysconfdir@} -. ${LIBPATH-@libexecdir@}/backup.sh +. ${LIBDIR-@libexecdir@}/backup.sh DUMP_LEVEL=0 TIME= @@ -187,7 +187,7 @@ message 20 "BACKUP_FILES=$BACKUP_FILES" backup_host ${remotehost} \ "--listed=`level_log_name temp`" \ "--label='`print_level` backup of ${fs} on ${remotehost} at ${NOW}'" \ - -C ${fs} . + -C ${ROOT_FS}${fs} . # `rsh' doesn't exit with the exit status of the remote command. What # stupid lossage. TODO: think of a reliable workaround. @@ -247,7 +247,9 @@ message 20 "BACKUP_FILES=$BACKUP_FILES" echo "." ) 2>&1 | tee -a "${LOGFILE}" -echo "Sending the dump log to ${ADMINISTRATOR}" -mail -s "Results of backup started ${startdate}" ${ADMINISTRATOR} < "${LOGFILE}" +if test "${ADMINISTRATOR}" != NONE; then + echo "Sending the dump log to ${ADMINISTRATOR}" + mail -s "Results of backup started ${startdate}" ${ADMINISTRATOR} < "${LOGFILE}" +fi # EOF