about summary refs log tree commit diff stats
path: root/notes
diff options
context:
space:
mode:
Diffstat (limited to 'notes')
-rw-r--r--notes/backup_disk.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/notes/backup_disk.md b/notes/backup_disk.md
new file mode 100644
index 00000000..d6c0f0cb
--- /dev/null
+++ b/notes/backup_disk.md
@@ -0,0 +1,23 @@
+# How to create a backup disk (for `soispha.services.backup`)
+## Find the disk
+```bash
+lsblk -o "NAME,MAJ:MIN,RM,SIZE,RO,FSTYPE,MOUNTPOINT,UUID"
+# or
+sudo fdisk -l
+```
+
+## Check it
+```bash
+sudo smartctl --test=short /dev/disk
+# or better:
+sudo smartctl --test=long /dev/disk
+
+# Run this to avoid a test timeout (otherwise the disk might go to sleep):
+sudo watch --differences --interval 60 smartctl --log=selftest /dev/disk
+```
+
+## Add it
+```
+sudo mkfs.btrfs /dev/disk --label backup
+```
+And change the `backupUuid` to the uuid of the new disk.