Skip to content

Commit 0c8a87c

Browse files
committed
--ignore-failed-read
1 parent ba6af0b commit 0c8a87c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mongodb_consistent_backup/Archive/Tar/TarThread.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ def run(self):
3737
config_backup_file = output_file_dir+"/" +"_".join(["config",output_file_basename])
3838

3939
log_msg = "Archiving directory: %s" % self.backup_dir
40-
cmd_flags = ["--exclude", "admin", "--exclude", "config" ,"-C", backup_base_dir+"/", "-c", "-f", self.output_file,]
41-
admin_command_flags = ["-C", self.backup_dir +"/dump/", "-c", "-f", admin_backup_file, "--ignore-failed-read", ]
42-
config_command_flags = ["-C", self.backup_dir +"/dump/", "-c", "-f", config_backup_file, "--ignore-failed-read", ]
40+
cmd_flags = ["--exclude", "admin", "--exclude", "config" ,"-C", backup_base_dir, "-c", "-f", self.output_file, "--remove-files"]
41+
admin_command_flags = ["-C", self.backup_dir +"/dump/", "-c", "-f", admin_backup_file, "--remove-files", "--ignore-failed-read",]
42+
config_command_flags = ["-C", self.backup_dir +"/dump/", "-c", "-f", config_backup_file, "--remove-files", "--ignore-failed-read",]
4343

4444

4545
if self.do_gzip():

0 commit comments

Comments
 (0)