NFS

De MochilaWiki

no servidor

apt-get install nfs-kernel-server
mkdir -p /home1/backup
chmod 777 /home1/backup

acrescente em /etc/exports

/home1/backup 192.168.1.0/24(rw,no_root_squash,async,no_subtree_check)

reiniciar o servidor

/etc/init.d/nfs-kernel-server restart

exportar configuração

exportfs -a

no cliente

apt-get install nfs-kernel-server nfs-common portmap
mkdir /srv/backup
sudo mount 192.168.1.32:/home1/backup /srv/backup

acrescentar em /etc/fstab

192.168.1.32:/home1/backup             /srv/backup/      nfs     defaults        0       0

referencias