Changes between Version 10 and Version 11 of FreeBSD ZFS Backup & Restore Full Instructions
- Timestamp:
- 02/01/24 06:11:18 (12 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FreeBSD ZFS Backup & Restore Full Instructions
v10 v11 15 15 * Example if you are backing up a 2TB system you will need an external 2TB drive 16 16 * Or 2TB avaliable on the nfs network share 17 * please be aware on the actual data size gets backed up but best to be safe. 17 18 18 19 * Next you need to consider the following before proceeding. 19 20 * FreeBSD Live CD does not allow mounting of zfs pools etc (which you dont want anyways for a restore) 20 * It also does not allow mounting of ntfs (windows) file system 21 * best suggetion is to format an external usb drive using '''newfs''' 22 * or backup to a network nfs share (also supported on the LiveCD 21 * It also does not allow mounting of ntfs (windows) file system 22 *(which means dont save your backup on a windows formated device) 23 * best suggetion is to format an external usb drive using '''newfs''' 24 * or backup to a network nfs share (also supported on the LiveCD) 23 25 24 26 25 27 * to '''backup''' the zfs volume do the following : 26 * '''zfs snapshot zroot/ROOT/default@backup''' 28 * '''zfs snapshot zroot/ROOT/default@backup''' (this makes a snapshot of the zfs file structure) 27 29 * then to do the actual backup 28 * '''zfs send zroot/ROOT/default@backup > backup.zfs''' (destination file does not matter but the @backup does, restore name must match. 30 * '''zfs send zroot/ROOT/default@backup > backup.zfs''' 31 * destination file does not matter but the @backup does, restore name must match. 32 * if you use '''zroot/ROOT/default@backup''' 33 * you must restore with the same mountpoint info 29 34 * please '''Do Not''' zip the file 30 35 * you can for archiving purposes, but you need the raw file to restore. … … 32 37 * FreeBSD for some reason makes extra mount points on a default install 33 38 * I took the time to sort that out and stripped my backup down to the root only. 39 * you will need to consider this for both the pools being backed up and restored. 34 40 35 41 36 42 37 * to restore a backup file to the zfs volume do the following :43 * To restore a backup file to the zfs volume do the following : 38 44 * You need to load FreeBSD from the cd as per usual, only the minimum install is required 39 45 * Make sure that you are only installing to one hdd,