freebsd:server2severcopy
Network File System(NFS)으로 옛서버에서 새서버로 문서 복사하기
Network File System (NFS)에서 설명하는 내용을 바탕으로 옛서버에서 새서버로 중요한 문서들을 복사할 때 필요한 요점들을 정리한 것이다.
두 서버에서 모두 root 계정으로 작업했다.
옛서버, 보안상 이 IP 주소를 192.168.1.37 이라고 가정하자
/etc/rc.conf 내용 일부
########## # NFS rpcbind_enable="YES" nfs_server_enable="YES" mountd_enable="YES" mountd_flags="-r" # Mount the file system read-only (even the super-use may not write it).
/etc/exports 내용 일부
/home -maproot=root 192.168.1.41 # 아래에서 설정할 새서버 주소 /usr -maproot=root 192.168.1.41 # 아래에서 설정할 새서버 주소
다음 명령어 실행
service nfsd start service mountd reload
새서버, 보안상 이 IP 주소를 192.168.1.41 이라고 가정하자
/etc/rc.conf 내용 일부
########## # NFS Client nfs_client_enable="YES"
다음 명령어 실행
service nfsclient start mount 192.168.1.37:/home /mnt copy -Rp /mnt/filestocopy /localdir/
freebsd/server2severcopy.txt · 마지막으로 수정됨: 2021/01/06 18:40 저자 127.0.0.1
