Mudanças entre as edições de "NFS"

De MochilaWiki
Ir para navegaçãoIr para pesquisar
Linha 22: Linha 22:
 
<source lang="bash">
 
<source lang="bash">
 
apt-get install nfs-kernel-server nfs-common portmap
 
apt-get install nfs-kernel-server nfs-common portmap
mkdir /home/backup
+
mkdir /srv/backup
sudo mount 192.168.1.32:/home1/backup /home/backup
+
sudo mount 192.168.1.32:/home1/backup /srv/backup
 
</source>
 
</source>
  
 
== referencias ==
 
== referencias ==
 
* http://www.techienote.com/2010/10/file-sharing-in-ubuntu-with-nfs.html
 
* http://www.techienote.com/2010/10/file-sharing-in-ubuntu-with-nfs.html

Edição das 19h10min de 17 de agosto de 2012

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

referencias