Blob Blame History Raw
--- a/bin/BackupPC_dump
+++ b/bin/BackupPC_dump
@@ -1871,6 +1871,9 @@ sub BackupFullExpire
         my $noDelete = $i + 1 < @$Backups ? $Backups->[$i+1]{noFill} : 0;
         $noDelete = 0 if ( !$Backups[$i]{preV4} );
 
+	#Don't delete full backups that have '.save' in their root directory
+        $noDelete = 1 if -e $Dir . "/" . $Backups[$i]{num} . "/.save";
+
         if ( !$noDelete && 
               ($fullKeepIdx >= @$fullKeepCnt
               || $k > 0