Skip to main content
Version: 2.201911.x.x LTS

NFS shares

NFS shares can be mounted if you use the "extended", "database", and "administration" (but not the "base") nevisAppliance image, see the chapter Image types.

Script to mount an NFS share at server start time:

/etc/init.d.custom/S80nfs example
#!/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
export PATH

case "$1" in
start)
mkdir -p /bkp
systemctl start rpcbind
mount share.zh.adnovum.ch:/vol/backup /bkp
;;
stop)
umount /bkp
;;

*)
echo "Usage: S80nfs {start|stop}"
exit 1
esac

exit 0