rsync sliceimage -> .lvref with --delete option for more accurate updates
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 12 Apr 2012 11:55:56 +0000 (13:55 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 12 Apr 2012 11:55:56 +0000 (13:55 +0200)
initscripts/lxc-sliceimage

index e17f838..2aa522c 100755 (executable)
@@ -30,7 +30,7 @@ function start () {
         # xxx what is that ?
        #btrfs subvolume create $lxc_dir/lxc-squeeze-x86_64
         # copy the slice image into the btrfs ?
-       rsync -av $sliceimage_dir/$slicefamily/ $lxc_dir/$slicefamily/
+       rsync -av --delete $sliceimage_dir/$slicefamily/ $lxc_dir/$slicefamily/
     done
 }