From d0afad8b5e6fbdf4c762b351eb331f310e395b1a Mon Sep 17 00:00:00 2001 From: Jonathan Maw Date: Mon, 13 May 2013 10:32:45 +0000 Subject: Make rsync delete files that shouldn't exist --- morphlib/exts/nfsboot.write | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'morphlib/exts') 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) -- cgit v1.2.1