]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
detect properly duplicity backups
authorAntoine Beaupre <anarcat@koumbit.org>
Thu, 25 Jun 2009 15:45:54 +0000 (11:45 -0400)
committerAntoine Beaupre <anarcat@koumbit.org>
Thu, 25 Jun 2009 15:45:54 +0000 (11:45 -0400)
files/checkbackups.pl

index c621109c4692539870706cded7de82fddb1e324d..be6bf7001b25d58df8d7f53886ef6ba8a0d7f2aa 100755 (executable)
@@ -114,6 +114,11 @@ foreach $host (@hosts) {
                        $flag="$dir/dump/" . `ls -tr $dir/dump | tail -1`;
                        chomp($flag);
                        $type="dump";
+               } elsif (-d "$dir/dup") {
+                       # XXX: this doesn't check backup consistency
+                       $flag="$dir/dup/" . `ls -tr $dir/dup | tail -1`;
+                       chomp($flag);
+                       $type="dup";
                } elsif (-r "$dir/rsync.log") {
                        # XXX: this doesn't check backup consistency
                        $flag="$dir/rsync.log";