1
0
mirror of https://github.com/hukl/freebsd-toolbox.git synced 2025-11-20 03:08:43 +01:00

Added zfs send command for manual backups

This commit is contained in:
John-Paul Bader
2022-12-15 13:29:03 +01:00
committed by GitHub
parent 3b1817db82
commit ad73ea6669

View File

@ -66,6 +66,10 @@ zpool add <pool> mirror <dev1> <dev1> # add two disks as mirror to a storage p
zpool remove <pool> <device> # remove single devices or mirror sets from the storage pool
zpool upgrade <pool> # upgrade the storage pool to latest version
zpool labelclear [-f] <pool> # Clear vdev headers on disk of previous / faulted / obsolete pools
zfs send pool/volume@snapshot \ # Compress and Encrypt a snapshot and send it to a remote host for backups
| lz4 \ # Decrypt with: openssl enc -d -aes-256-cbc -a -in /path/to/backup/snapshot.lz4.ssl | unlz4 > /path/to/dest
| openssl enc -aes-256-cbc -a -salt \ # OR | zfs receive tank/volume
| ssh u@h "cat > /snapshot.lz4.ssl
```
# Software