Changes between Version 6 and Version 7 of FreeBSD ZFS Backup & Restore Full Instructions
- Timestamp:
- 02/01/24 05:57:48 (15 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FreeBSD ZFS Backup & Restore Full Instructions
v6 v7 35 35 * to restore a backup file to the zfs volume do the following : 36 36 * You need to load FreeBSD from the cd as per usual, only the minimum install is required 37 * Make sure that you are only installing to one hdd, 38 * i had extra ones and the recovery did not work. 39 * as the boot loader was looking for other hdd's that did not exist. 37 40 * When you load FreeBSD on a new drive intended for the restore 38 41 * You will need to duplicate the structure of the way it was backed up. 39 * for example i had to do a bunch of '''zfs destroy <mount i dont need>''' 42 * for example i had to do a bunch of '''zfs destroy <mount point(s) i dont need>''' 43 * you need to do a normal book after installing FreeBSD 44 * and remove the pools 45 * after removing the extra pools (if needed) 46 * reboot and make sure the pool structure is exactly the same as the backup was. 40 47 * before i could restore the file. 41 * also keep in mind you probablyu have to backup all mount points seperately and restore them seperately ? 48 * also keep in mind you probably have to backup all mount points seperately and restore them seperately ? 49 * (why i took the time to strip the extra zfs mount points down to a single one) 42 50 * Launch the Installer CD (ZFS Versions must match or be higher, best to use the same Installer for all) 43 * Once logged into the LiveCD you WILL need to '''z fspool import zroot'''51 * Once logged into the LiveCD you WILL need to '''zpool import zroot''' 44 52 * It will not mount but it loads the drivers needed to access the volume 45 * next you will need to make a mount point for your data 53 * You should get an error saying unable to mount to read only file system, this is GOOD! 54 * next you will need to make a mount point for your data (the file that has your drive backup) 46 55 * use /tmp/<mountpoint> as it is already in ram and will allow mounts. 47 56 * i used '''/tmp/tmp''' for example