about summary refs log tree commit diff stats
path: root/notes/backup_disk.md
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-13 21:16:32 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-13 21:16:32 +0200
commit9cb9c89a5001c5d1136773f44419fda5bc374dcb (patch)
tree2b886d9541ebaf48a4d22a9a373f95aeaee3d8bd /notes/backup_disk.md
parentfix(hosts/tiamat): Set new backup disk uuid (diff)
downloadnixos-config-9cb9c89a5001c5d1136773f44419fda5bc374dcb.tar.gz
nixos-config-9cb9c89a5001c5d1136773f44419fda5bc374dcb.zip
docs(notes/backup_disk.md): Init
Diffstat (limited to 'notes/backup_disk.md')
-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.