ZFS Backup Prerequisites: Difference between revisions

From wiki
Jump to navigation Jump to search
imported>Jacob
No edit summary
imported>Jacob
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<hr><p style="text align:left;">
Previous [[ZFS Backup]]
<span style="float:right;">
Next [[Freebsd Knowledge Base]]
</span></p><hr>


 
==== 1 Prerequisites ====
 
 
 
1 Prerequisites  
If the dataset exists and needs to be deleted first use:
If the dataset exists and needs to be deleted first use:
># zfs destroy zbackup/var/zfsbackup/[hostname]
># zfs destroy zbackup/var/zfsbackup/[hostname]
Line 33: Line 34:


<hr>
<hr>
<p style="text align:left;">Previous [[Poudriere setup]]
<p style="text align:left;">Previous [[ZFS Backup]]
<span style="float:right;">Return [[Freebsd Knowledge Base]]</span></p>
<span style="float:right;">Next [[Freebsd Knowledge Base]]</span></p>
<center> Up [[Freebsd Knowledge Base]]</center>
<center> Up [[ZFS Backup]]</center>
<hr>
<hr>

Latest revision as of 19:38, 29 January 2020


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