Skip to content

Commit 70f4883

Browse files
corey-hammertontimvaillancourt
authored andcommitted
Upload/Rsync/Rsync:prepare_dest_dir: Running mkdir against rsync path instead of base dir (#268)
Resolves #267 The default behaviour of this function is to run "mkdir -p /" on the rsync target host. This is the wrong target location. This commit resolves this by running "mkdir -p `rsync_path`" which is where the RsyncUploadThread class sets the destination.
1 parent 2a95b86 commit 70f4883

File tree

1 file changed

+1
-1
lines changed
  • mongodb_consistent_backup/Upload/Rsync

1 file changed

+1
-1
lines changed

mongodb_consistent_backup/Upload/Rsync/Rsync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def prepare_dest_dir(self):
7373
ssh_mkdir_cmd.extend(["-i", self.rsync_ssh_key])
7474
ssh_mkdir_cmd.extend([
7575
"%s@%s" % (self.rsync_user, self.rsync_host),
76-
"mkdir", "-p", self.base_dir
76+
"mkdir", "-p", self.rsync_path
7777
])
7878

7979
# run the mkdir via ssh

0 commit comments

Comments
 (0)