aboutsummaryrefslogtreecommitdiffstats
path: root/notes
diff options
context:
space:
mode:
Diffstat (limited to 'notes')
-rw-r--r--notes/backup_disk.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/notes/backup_disk.md b/notes/backup_disk.md
index d6c0f0cb..363bae11 100644
--- a/notes/backup_disk.md
+++ b/notes/backup_disk.md
@@ -1,5 +1,7 @@
# 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
@@ -7,6 +9,7 @@ sudo fdisk -l
```
## Check it
+
```bash
sudo smartctl --test=short /dev/disk
# or better:
@@ -17,7 +20,9 @@ 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.