X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Flevel-1;h=55786950be2c9aa3e1808838cf41c8b620bbbb0a;hb=63f2f45b88e84d2a8d414da0ae81ffe58fda7cb4;hp=6410576f4eca15520c7fd71c444ee47c72a87d5d;hpb=f9a11075d98cfd0336a325e7c293853d5736f12c;p=chaz%2Ftar diff --git a/scripts/level-1 b/scripts/level-1 index 6410576..5578695 100644 --- a/scripts/level-1 +++ b/scripts/level-1 @@ -65,9 +65,10 @@ startdate="`date`" here="`pwd`" # Logfile name should be in the form ``log-1993-03-18-level-1'' +# 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;} @@ -85,7 +86,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