UNLICENSE License
Example scripts to demonstrate how to back up encrypted ZFS backups to an unencrypted dataset.
.env.example
to .env
.env
according to your system.To perform a full backup of your dataset snapshots, run the following script:
./replicate-full-snapshots
You'll likely want to run this as a cron job weekly or monthly.
To perform incremental backups relative to your latest full backups (above), run the following command:
./replicate-incremental-snapshots
You'll likely want to run this as a cron job daily or weekly.
To recover from an encrypted dataset backup, run the following script:
./snapshot-to-dataset \
new-dataset-name \
full-snapshot-path \
[incremental-snapshot-path]
For example, if you were recovering a dataset from encrypted and incremental backup files, you'd run the following:
./snapshot-to-dataset \
documents-recovered \
/mnt/pool1/secure-backups/full-snapshots/documents@manual-2022-07-02_22-18 \
/mnt/pool1/secure-backups/incremental-snapshots/documents@auto-2022-07-05_00-00