Backups: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 10: | Line 10: | ||
usb-backups 1.81T 396K 1.81T - 0% 0% 1.00x ONLINE /mnt | usb-backups 1.81T 396K 1.81T - 0% 0% 1.00x ONLINE /mnt | ||
# | # Initial | ||
zfs snapshot -r archive/backups@2015-09-22 | zfs snapshot -r archive/backups@2015-09-22 | ||
| Line 21: | Line 21: | ||
zfs snapshot -r archive/backups@2015-09-23 | zfs snapshot -r archive/backups@2015-09-23 | ||
# For each intermediate snapshot... | # For each intermediate snapshot... | ||
zfs send -R -i archive/backups@2015-09-22 archive/backups@2015-09-23 | zfs receive -vF usb-backups | zfs send -R -i archive/backups@2015-09-22 archive/backups@2015-09-23 | zfs receive -vF usb-backups | ||
| Line 33: | Line 33: | ||
# import the backup pool | # import the backup pool | ||
zpool import usb-backups | zpool import usb-backups | ||
Now that ZFS supports encryption, this can be done another way ... | |||
Latest revision as of 01:09, 4 July 2025
Periodic export of ZFS pool to external USB drive
[root@freenas] ~# zpool list NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT archive 7.25T 4.17T 3.08T - 14% 57% 1.00x ONLINE /mnt freenas-boot 3.72G 2.27G 1.45G - - 60% 1.00x ONLINE - usb-backups 1.81T 396K 1.81T - 0% 0% 1.00x ONLINE /mnt # Initial zfs snapshot -r archive/backups@2015-09-22 zfs send -R archive/backups@2015-09-22 | zfs receive -vF usb-backups ... # Incremental after that zfs snapshot -r archive/backups@2015-09-23 # For each intermediate snapshot... zfs send -R -i archive/backups@2015-09-22 archive/backups@2015-09-23 | zfs receive -vF usb-backups # export the backup pool zpool export usb-backups # decrypt device ... # import the backup pool zpool import usb-backups
Now that ZFS supports encryption, this can be done another way ...