From 9cb9c89a5001c5d1136773f44419fda5bc374dcb Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 13 Oct 2024 21:16:32 +0200 Subject: docs(notes/backup_disk.md): Init --- notes/backup_disk.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 notes/backup_disk.md (limited to 'notes') 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. -- cgit 1.4.1