projects
/
veternica
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(initial)
backup sd card and make btrfs snapshot
author
root
<root@nuc.tv>
Sat, 22 Jul 2023 09:00:30 +0000
(11:00 +0200)
committer
root
<root@nuc.tv>
Sat, 22 Jul 2023 09:00:30 +0000
(11:00 +0200)
backup-sd.sh
[new file with mode: 0644]
patch
|
blob
diff --git a/backup-sd.sh
b/backup-sd.sh
new file mode 100644
(file)
index 0000000..
74dba6d
--- /dev/null
+++ b/
backup-sd.sh
@@ -0,0
+1,16
@@
+#!/bin/sh -xe
+
+id=1
+
+mount /dev/sdc2 mnt
+mount /dev/sdc1 mnt/boot
+
+
+
+rsync -ravH --numeric-ids --sparse --delete mnt/ rootfs/ | tee rootfs.$id.log
+btrfs sub snap -r rootfs rootfs.$id
+
+
+
+#nuc/veternica/rootfs
+