Zfs backups: Difference between revisions
From wikinotes
(Created page with "= zfs send/receive = <blockquote> todo </blockquote><!-- zfs send/receive --> = multi-volume tar = <blockquote> The most professional way of performing a backup of a large da...") |
No edit summary |
||
Line 26: | Line 26: | ||
tar -cvzf --multi-volume --file=/mnt/backup/backup.tar <files> | tar -cvzf --multi-volume --file=/mnt/backup/backup.tar <files> | ||
</source> | </source> | ||
</blockquote><!-- multi-volume tar --> |
Latest revision as of 16:30, 2 July 2022
zfs send/receive
todo
multi-volume tar
The most professional way of performing a backup of a large dataset is having another server, and using
zfs send
. But if you're looking for a cheaper solution, you can use tar.# Create a snapshot of your dataset. # this way, you are ensuring that all information is consistent # and complete for that moment in time. sudo zfs snapshot -r zroot/media@2017_09_02_hddbackup # navigate to backup cd zroot/media/.zfs/snapshots/2017_09_02_hddbackup # mount your external HDD # (you should have already formatted/partitioned it) # (to UFS using gpart) mount /dev/yourhdd /mnt/backup tar -cvzf --multi-volume --file=/mnt/backup/backup.tar <files>