]> git.parisson.com Git - clone-me.git/commitdiff
format partitions, fix rsync exclude
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 21 Nov 2013 01:45:15 +0000 (02:45 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 21 Nov 2013 01:45:15 +0000 (02:45 +0100)
tc_clone_nuc.sh

index 565bce6b9178e96c0c9b69a4e9ca649b00309a00..f88e1b329b26e15c74a64edf84d68cad0065e0d3 100755 (executable)
@@ -16,6 +16,11 @@ VAR_PART="sda2"
 SWAP_PART="sda3"
 HOME_PART="sda4"
 
+mkfs.$FS_TYPE /dev/$ROOT_PART
+mkfs.$FS_TYPE /dev/$VAR_PART
+mkfs.$FS_TYPE /dev/$HOME_PART
+mkswap /dev/$SWAP_PART
+
 CLONE=/mnt/$NAME
 if [ ! -d $CLONE ]; then
  mkdir $CLONE
@@ -42,8 +47,7 @@ if [ ! -d $DEST ]; then
  mkdir $DEST
 fi
 mount /dev/$HOME_PART $DEST
-rsync -a --one-file-system --exclude=$MASTER:/home/telecaster/archives/ --exclude=$MASTER:/home/telecaster/trash/ \
-     --exclude=$MASTER:/home/telecaster/test/ $MASTER:$MASTERPATH/home/ $CLONE/home/
+rsync -a --one-file-system --exclude "archives/*" --exclude "trash/*" --exclude "test/*" $MASTER:$MASTERPATH/home/ $CLONE/home/
 umount $CLONE/home
 
 # FSTAB