summaryrefslogtreecommitdiff
path: root/morphlib/exts
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2013-06-16 11:41:32 +0000
committerTiago Gomes <tiago.gomes@codethink.co.uk>2013-06-17 01:36:32 +0000
commit1a83aa90877ee3dab7bfdd52df411d085f346592 (patch)
treee468f7009cca8c37cc8130cada337ccbcb3dadcb /morphlib/exts
parente038b699494a7d378dd9f73267feef1c023568c8 (diff)
downloadmorph-1a83aa90877ee3dab7bfdd52df411d085f346592.tar.gz
Add a missing trailing slash to the source directory of rsync
Accordingly the rsync manual: "A trailing slash on the source changes this behavior to avoid creating an additional directory level at the destination. You can think of a trailing / on a source as meaning "copy the contents of this directory" as opposed to "copy the directory by name".
Diffstat (limited to 'morphlib/exts')
-rwxr-xr-xmorphlib/exts/ssh-rsync.write3
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/exts/ssh-rsync.write b/morphlib/exts/ssh-rsync.write
index 77266d33..b8d30e22 100755
--- a/morphlib/exts/ssh-rsync.write
+++ b/morphlib/exts/ssh-rsync.write
@@ -142,7 +142,8 @@ class SshRsyncWriteExtension(morphlib.writeexts.WriteExtension):
old_orig, new_orig])
cliapp.runcmd(['rsync', '-as', '--checksum', '--numeric-ids',
- '--delete', temp_root, '%s:%s' % (location, new_orig)])
+ '--delete', temp_root + os.path.sep,
+ '%s:%s' % (location, new_orig)])
def get_old_orig(self, location, remote_mnt):
'''Identify which subvolume to snapshot from'''