ZFS Backup Prerequisites: Difference between revisions
imported>Jacob No edit summary |
imported>Jacob No edit summary |
||
| Line 33: | Line 33: | ||
<hr> | <hr> | ||
<p style="text align:left;">Previous [[ | <p style="text align:left;">Previous [[ZFS Backup]] | ||
<span style="float:right;"> | <span style="float:right;">Next [[Freebsd Knowledge Base]]</span></p> | ||
<center> Up [[ | <center> Up [[ZFS Backup]]</center> | ||
<hr> | <hr> | ||
Revision as of 19:36, 29 January 2020
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