FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 37f258cc authored by Dr. Frank Lee's avatar Dr. Frank Lee
Browse files

Adjust method for NFS export and automatically export when created

parent 84a8109e
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ do_start()
# Add code here, if necessary, that waits for the process to be ready
# to handle requests from services started subsequently which depend
# on this one. As a last resort, sleep for some time.
/usr/lib/chem-zfs-backup-server/exportzfs
#/usr/lib/chem-zfs-backup-server/exportzfs
}
#
......
......@@ -121,6 +121,7 @@ function getsshkey() {
HOSTID=`ensurehost $FQDN`
echo Host ID is $HOSTID
ensurezfs $TGT
zfs set sharenfs=ro=${FQDN},no_root_squash $TGT
# Do root backup
backupdir $FQDN $TGT/zfs-rsnap /
......
......@@ -145,6 +145,7 @@ function getsshkey() {
HOSTID=`ensurehost $FQDN`
echo Host ID is $HOSTID
ensurezfs $TGT
zfs set sharenfs=ro=${FQDN},no_root_squash $TGT
# Do root backup
backupzfs $FQDN $TGT $SRC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment