X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Flevel-0;h=bcf886df3ed9d9d44b1b58f2689ba584efdd4781;hb=e4b2fc0bd9c12311a49a7e08a779988664ecb3fe;hp=4e1ffe4d781f5cf5c1ac085b54b2b7ae1975c953;hpb=2a4e22fb263216e8819db40267ba76af3a0c73ec;p=chaz%2Ftar diff --git a/scripts/level-0 b/scripts/level-0 index 4e1ffe4..bcf886d 100644 --- a/scripts/level-0 +++ b/scripts/level-0 @@ -66,9 +66,10 @@ startdate="`date`" here="`pwd`" # Logfile name should be in the form ``log-1993-03-18-level-0'' +# They go in the subdirectory `log' of the current directory. # i.e. year-month-date. This format is useful for sorting by name, since # logfiles are intentionally kept online for future reference. -LOGFILE="log-`date | sed -ne ' +LOGFILE="log/log-`date | sed -ne ' s/[^ ]* *\([^ ]*\) *\([^ ]*\).* \([^ ]*\)$/\3-\1-\2/ /-[0-9]$/s/\([0-9]\)$/0\1/ /Jan/{s/Jan/01/p;q;} @@ -86,7 +87,7 @@ LOGFILE="log-`date | sed -ne ' localhost="`hostname | sed -e 's/\..*//'`" -TAR_PART1="/usr/local/bin/tar -c --multi-volume --one-file-system --block=${BLOCKING} --sparse --volno-file=${VOLNO_FILE}" +TAR_PART1="${TAR} -c --multi-volume --one-file-system --block-size=${BLOCKING} --sparse --volno-file=${VOLNO_FILE}" # Only use --info-script if DUMP_REMIND_SCRIPT was defined in backup-specs if [ "x${DUMP_REMIND_SCRIPT}" != "x" ]; then