diff --git a/ChangeLog b/ChangeLog index 2870b1c83b23fc79938c241ab950e2a149248e1d..f1167127ba102f41c16fadc05353b03048b7d6c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,10 @@ -2009-10-25 Per Jonsson <poj@minerva.lkpg.dravejk.net> +2009-10-25 Per Jonsson <poj@lysator.liu.se> + + Minor fix in status the first time a task is backed up. + * backup-one-task: Do not run pruneing step the first time a task + is run. This removes an incorrect warning for task. + +2009-10-25 Per Jonsson <poj@lysator.liu.se> Updated the config for Lysator * fetch-backup-work: Remove backups of lenin and kilauea. Fetch diff --git a/backup-one-task b/backup-one-task index 8559c1082575abfab5d91feb499ae60c48406c9b..7272061e1e8e1da9aaf2b50b68fdf25724caaa25 100755 --- a/backup-one-task +++ b/backup-one-task @@ -138,16 +138,19 @@ then then AGE=`cat "$age"` fi - - echo -ne "${CLR}${msg}: removing increments older than $AGE" - $ss --status $disk $part "${msg}: removing increments older than $AGE" - /opt/LYSrdiff/bin/rdiff-backup \ - --remove-older-than $AGE \ - --null-separator \ - --force \ - -v 2 \ - "$files" > "$rdiffcleanlogfile" 2>&1 + if [ -d "$files" ] + then + echo -ne "${CLR}${msg}: removing increments older than $AGE" + $ss --status $disk $part "${msg}: removing increments older than $AGE" + + /opt/LYSrdiff/bin/rdiff-backup \ + --remove-older-than $AGE \ + --null-separator \ + --force \ + -v 2 \ + "$files" > "$rdiffcleanlogfile" 2>&1 + fi fi if [ $only_prune = 1 ]