diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-13 21:16:32 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-13 21:16:32 +0200 |
commit | 9cb9c89a5001c5d1136773f44419fda5bc374dcb (patch) | |
tree | 2b886d9541ebaf48a4d22a9a373f95aeaee3d8bd | |
parent | fix(hosts/tiamat): Set new backup disk uuid (diff) | |
download | nixos-config-9cb9c89a5001c5d1136773f44419fda5bc374dcb.tar.gz nixos-config-9cb9c89a5001c5d1136773f44419fda5bc374dcb.zip |
docs(notes/backup_disk.md): Init
Diffstat (limited to '')
-rw-r--r-- | notes/backup_disk.md | 23 |
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. |