]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
make checkbackups script ignore lost+found dir
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>
Tue, 9 Feb 2010 14:54:28 +0000 (09:54 -0500)
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>
Wed, 12 Oct 2011 19:14:56 +0000 (15:14 -0400)
files/checkbackups.pl

index 80fc07feb52dafa8110ac3eb24a462f405ffb081..dba2b4a546f5cc737bfa4931ff32ca98674ea59c 100755 (executable)
@@ -61,7 +61,7 @@ if (defined($opt_o)) {
        @hosts=qx{hostname -f};
 } else {
        # XXX: this should be a complete backup registry instead
-       @hosts=qx{ls $backupdir};
+       @hosts=qx{ls $backupdir | grep -v lost+found};
 }
 
 chdir($backupdir);