pvl/backup/rsync.py
changeset 9 c4c858043729
parent 6 302f45534b73
child 12 fbfdde7326f4
--- a/pvl/backup/rsync.py	Tue Feb 14 19:28:47 2012 +0200
+++ b/pvl/backup/rsync.py	Tue Feb 14 19:38:23 2012 +0200
@@ -31,7 +31,7 @@
             Underlying rsync just reads from filesystem.
         """
 
-        invoke(self.RSYNC, options + [path, '.'], data=False)
+        invoke(self.RSYNC, options + ['.', path], data=False)
 
 class RSyncFSSource (RSyncSource) :
     """
@@ -84,7 +84,8 @@
                 # rsync!
                 log.info("Running rsync: ...")
 
-                return self._execute(options, mountpoint.path)
+                # with trailing slash
+                return self._execute(options, mountpoint.path + '/')
 
             # cleanup
         # cleanup