]> git.parisson.com Git - clone-me.git/commitdiff
add remote rsync, fix disk address
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 8 Jun 2021 06:29:21 +0000 (08:29 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 8 Jun 2021 06:29:21 +0000 (08:29 +0200)
chroot-on.sh
rsync_remote_nuc.sh [new file with mode: 0755]

index 08fc9038295a5e46a45ff85ef1e3242af63c1db3..060e80828dff1d4246cacf6ea6c2132173292058 100755 (executable)
@@ -2,16 +2,16 @@
 
 dir=/mnt/custom
 
-ROOT=/dev/sdb2
-VAR=/dev/sdb3
-HOME=/dev/sdb6
+ROOT=/dev/sdg2
+VAR=/dev/sdg3
+HOME=/dev/sdg6
 
 mount $ROOT $dir
 mount --bind /sys $dir/sys
 mount --bind /proc $dir/proc
 mount --bind /dev $dir/dev
 mount --bind /dev/pts $dir/dev/pts
-mount --bind /run $dir/run
+#mount --bind /run $dir/run
 mount $VAR $dir/var
 mount $HOME $dir/home
 
diff --git a/rsync_remote_nuc.sh b/rsync_remote_nuc.sh
new file mode 100755 (executable)
index 0000000..e1055f5
--- /dev/null
@@ -0,0 +1,9 @@
+
+mount /dev/sdg2 /mnt/custom
+mount /dev/sdg3 /mnt/custom/var
+mount /dev/sdg6 /mnt/custom/home
+
+sudo rsync -a --one-file-system -e 'ssh -p 22022' root@localhost:/ /mnt/custom/ 
+sudo rsync -a --one-file-system -e 'ssh -p 22022' root@localhost:/var/ /mnt/custom/var/
+sudo rsync -a --one-file-system --exclude=archives --exclude=trash  -e 'ssh -p 22022' root@localhost:/home/ /mnt/custom/home/
+