ZFS Backup Prerequisites

From wiki
Jump to navigation Jump to search

Previous ZFS Backup Next Freebsd Knowledge Base


1 Prerequisites

If the dataset exists and needs to be deleted first use: ># zfs destroy zbackup/var/zfsbackup/[hostname]

Make sure there is a dataset on the backup server for each server. That will be the destination for the streamed backups. ># zfs create -o mountpoint=/var/zfsbackup/[hostname] zbackup/var/zfsbackup/[hostname] Then create a dataset for each data set to be received ># zfs create -o mountpoint=/var/zfsbackup/[hostname][dataset] zbackup/var/zfsbackup/[hostname][dataset]

For jacup that will be: ># zfs destroy -r zbackup/var/zfsbackup/firedoor

Create the mount points for the host root datasets first ># mkdir -p /var/zfsbackup/{bigboy,fire,jacup}/zroot The create Then create the datasets for the hosts. ># zfs create -o mountpoint=/var/zfsbackup/bigboy zbackup/var/zfsbackup/bigboy ># zfs create -o mountpoint=/var/zfsbackup/fire zbackup/var/zfsbackup/fire ># zfs create -o mountpoint=/var/zfsbackup/firebox zbackup/var/zfsbackup/firebox ># zfs create -o mountpoint=/var/zfsbackup/poud zbackup/var/zfsbackup/poud ># zfs create -o mountpoint=/var/zfsbackup/jacup zbackup/var/zfsbackup/jacup

For firebox on jacup the sequence would be ># zfs destroy -r zbackup/var/zfsbackup/firebox@zfirebox2001101319 ># zfs destroy -r zbackup/var/zfsbackup/firebox ># zfs create -o mountpoint=/var/zfsbackup/firebox zbackup/var/zfsbackup/firebox



Previous ZFS Backup Next Freebsd Knowledge Base

Up ZFS Backup