Skip to content

Commit 0637625

Browse files
committed
admin1
1 parent 88ede17 commit 0637625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mongodb_consistent_backup/Archive/Tar/TarThread.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def run(self):
3737

3838
log_msg = "Archiving directory: %s" % self.backup_dir
3939
cmd_flags = ["--exclude", "admin" ,"-C", backup_base_dir, "-c", "-f", self.output_file, "--remove-files"]
40-
admin_command_flags = ["-C", self.backup_dir +"/dump/admin", "-c", "-f", admin_backup_file]
40+
admin_command_flags = ["-C", self.backup_dir +"/dump/admin", "-c", "-f", admin_backup_file, "--remove-files"]
4141

4242

4343
if self.do_gzip():
@@ -46,7 +46,7 @@ def run(self):
4646
admin_command_flags.append("-z")
4747

4848
cmd_flags.append(backup_base_name)
49-
admin_command_flags.append(".")
49+
admin_command_flags.append("admin")
5050
logging.info(log_msg)
5151
self.running = True
5252
self._command = LocalCommand(self.binary, cmd_flags, admin_command_flags, self.verbose)

0 commit comments

Comments
 (0)