#note Serial Number (SN) taken from output of `ls /dev/disk/by_id` Drive Positions inside Case (Top to Bottom) 1. SN: ZDHA12Q8 2. SN: ZDHAQ59P 3. SN: ZHZ61CYE (only in for backups) 4. SN: ZR144EQN ## Backup Strategy - weekly [incremental backups](https://xai.sh/2018/08/27/zfs-incremental-backups.html) send to hsmr - I should consider automatically creating daily snapshots ## Systemd - enabled - sshd.service - nfs-server.service - fstrim.timer - paccache.timer - docker.service - zfs-scrub@data.timer - zfs-mount.service ## etc - `/etc/ssh/sshd_config` - PasswordAuthentication: no - PubkeyAuthentication: yes - `/etc/pacman.conf`: added `NetworkManager` to `HoldPkg`. `NetworkManager` is needed for internet. ## ZFS https://wiki.archlinux.org/title/ZFS#Scrubbing #important I need to at least monthly scrub hsmr manually ### zpools - data - SN: ZDHA12Q8 - SN: ZDHAQ59P - SN: ZR144EQN - hsmr - SN: ZHZ61CYE ### common commands Generally, you use the zpool command if you wanna work with pools and you use the zfs command if you wanna work with datasets. There are some exceptions to this. To get a list of all importable pools. ```bash zpool import ``` You can either import all or a specific pool. To export, you just replace import with export. ```bash zpool import [-a|] ``` If the pool wasn't auto-mounted, then you can use this. To unmount, you just need to replace mount with unmount. ```bash zfs mount [-a|] ``` To get a list of all datasets ```bash zfs list ``` To get a list of all snapshots ```bash zfs list -t snaphots ``` To create a recursive snapshot. A recursive snapshot means to also create a snapshot of all child datasets. #todo complete date command ```bash zfs snapshot -r data@$(date +'%Y-%m-%dT%H:%M:%S') ``` To send a recursive snapshot to another zfs pool ```bash zfs send -RI data@ data@ | zfs send -Fu hsmr/data ```