scripts/FreeBSD/vm
2021-02-10 18:35:24 +01:00
..
readme.md [SCRIPTS] Fast forward 2021-02-10 18:35:24 +01:00
unused_vm-backup-single.csh [SCRIPTS] Fast forward 2021-02-10 18:35:24 +01:00
unused_vm-backup.csh [SCRIPTS] Fast forward 2021-02-10 18:35:24 +01:00
vcreate.csh [GLOBAL] Organized scripts 2020-06-02 15:09:46 +02:00
vm-backup.bash [SCRIPTS] Fast forward 2021-02-10 18:35:24 +01:00

vm-backup.bash

Restore single line:

openssl enc -d -aes-256-ctr -a -pbkdf2 -iter 1000 -k supersecretstuff -in < backup file > | \
pigz -c -d -p 4 | \
zfs receive -F < restore destination >

Example:

openssl enc -d -aes-256-ctr -a -pbkdf2 -iter 1000 -k supersecretstuff -in /tank/backup/vms/stack-2021-02-10.pigz.enc | \
pigz -c -d -p 4 | \
zfs receive -F zroot/vms/stack