diff options
author | Peter Palfrader <peter@palfrader.org> | 2007-08-21 12:42:17 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2007-08-21 12:42:17 +0000 |
commit | 4f7b405087a12aff3b1aca6de6d90fbbca9e4b6d (patch) | |
tree | 038ee580edff2dc04454d7631c408681d950d689 | |
parent | 5e4bf089fa6790ee09053c01435df16b62944e9d (diff) |
Fix the case where backups are older than the longest keep time
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@291 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-x | expire-baks | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/expire-baks b/expire-baks index e130f35..ee92d81 100755 --- a/expire-baks +++ b/expire-baks @@ -172,6 +172,11 @@ sub doexpire($$$) { my $howoften = $rules->{$keep[0]}; + if ($age > $keep[0]) { + push @expire, $timestamp; + print "File at $timestamp (".(scalar localtime $timestamp).") is way too old ". + "($age seconds, when we keep only $keep[0])\n" if $VERBOSE; + } if (defined $last && ($timestamp - $last < $howoften - $SKEW)) { # if the difference between the push @expire, $timestamp; # last we kept and this one is too |