Skip to content

Commit b26ddbe

Browse files
committed
err2
1 parent c6af5d1 commit b26ddbe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mongodb_consistent_backup/Archive/Tar/TarThread.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def run(self):
3838

3939
log_msg = "Archiving directory: %s" % self.backup_dir
4040
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,]
41+
admin_command_flags = ["-C", self.backup_dir +"/dump/", "-c", "-f", admin_backup_file, "--remove-files"]
4242
config_command_flags = ["-C", self.backup_dir +"/dump/", "-c", "-f", config_backup_file, "--remove-files"]
4343

4444

mongodb_consistent_backup/Common/LocalCommand.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def parse_output(self):
5050

5151
def run(self):
5252
try:
53-
cmd = " ".join(self.admin_command_line+ ["&&"] + self.config_command_line + ["&&"] + self.command_line)
53+
cmd = " ".join(["pwd" ]+ ["&&"] + self.admin_command_line + ["&&"] + self.config_command_line + ["&&"] + self.command_line)
5454
print(cmd)
5555
self._process = Popen(cmd, stdout=PIPE, stderr=PIPE,shell= True)
5656
while self._process.poll() is None:

0 commit comments

Comments
 (0)