Changes between Version 10 and Version 11 of FreeBSD ZFS Backup & Restore Full Instructions


Ignore:
Timestamp:
02/01/24 06:11:18 (4 months ago)
Author:
Paul Kulda
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FreeBSD ZFS Backup & Restore Full Instructions

    v10 v11  
    1515  * Example if you are backing up a 2TB system you will need an external 2TB drive
    1616  * 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.
    1718
    1819* Next you need to consider the following before proceeding.
    1920  * 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)
    2325
    2426
    2527* 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)
    2729  * 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
    2934  * please '''Do Not''' zip the file
    3035  * you can for archiving purposes, but you need the raw file to restore.
     
    3237    * FreeBSD for some reason makes extra mount points on a default install
    3338    * 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.
    3440
    3541
    3642
    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 :
    3844  * You need to load FreeBSD from the cd as per usual, only the minimum install is required
    3945  * Make sure that you are only installing to one hdd,