diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2013-05-13 10:32:45 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2013-05-14 15:45:54 +0100 |
commit | d0afad8b5e6fbdf4c762b351eb331f310e395b1a (patch) | |
tree | bfb7e9de079fa522a7c2175c9b3361f6de2b92f2 /morphlib/exts/nfsboot.write | |
parent | ccbece24d26bdc91d1b5b36dc18f3d447f92b109 (diff) | |
download | morph-d0afad8b5e6fbdf4c762b351eb331f310e395b1a.tar.gz |
Make rsync delete files that shouldn't exist
Diffstat (limited to 'morphlib/exts/nfsboot.write')
-rwxr-xr-x | morphlib/exts/nfsboot.write | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/exts/nfsboot.write b/morphlib/exts/nfsboot.write index 34200793..e18ff798 100755 --- a/morphlib/exts/nfsboot.write +++ b/morphlib/exts/nfsboot.write @@ -95,7 +95,7 @@ class NFSBootWriteExtension(morphlib.writeexts.WriteExtension): rootfs_dest = os.path.join('/srv/nfsboot/nfs', hostname) rsync_dest = 'root@%s:%s' % (location, rootfs_dest) cliapp.runcmd( - ['rsync', '-a', rootfs_src, rsync_dest]) + ['rsync', '-aXSPH', '--delete', rootfs_src, rsync_dest]) def configure_nfs(self, location, hostname): rootfs_dest = os.path.join('/srv/nfsboot/nfs', hostname) |