Percona-Lab / mongodb_consistent_backup

A tool for performing consistent backups of MongoDB Clusters or Replica Sets
https://www.percona.com
Apache License 2.0
276 stars 81 forks source link

Upload/Rsync/Rsync:prepare_dest_dir: Running mkdir against rsync path… #268

Closed corey-hammerton closed 6 years ago

corey-hammerton commented 6 years ago

… instead of base dir

Resolves https://github.com/Percona-Lab/mongodb_consistent_backup/issues/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.