to setup nfs between hostA and hostB
- on hostA: ls -al /datafile
- on hostA: vi /etc/exports
- on hostA: add line:
/datafile -anon=65534,access=hostB,root=hostB
- on hostb: mkdir /hostA/datafile
- on hostA: /usr/etc/exports -a
- on hostB: mount hostA:/datafile /hostA/datafile
- on hostB: cd /hostA/datafile
- on hostB: ls -al
- on hostB: are these the same files as in step 1?
to move data between between hostA and hostB
after making nfs mount and by using tar
- on hostB: cd /hostA/datafile (if not mounted see setup of nfs)
- on hostB: tar cvf - . | (cd /datafile; tar xvf -)
- on hostB: ls -al are the files there?
- on hostB: cd ..
note: /datafile is on hostA, while /hostA/datafile is on hostB
to move data between between hostA and hostB
after making nfs mount and by using find and cpio
- on hostB: cd /hostA/datafile (if not mounted see setup of nfs)
- on hostB: find . /hostA/datafile -depth | cpio pdumxv /datafile
- on hostB: ls -al are the files there?
- on hostB: cd ..
note: /datafile is on hostA, while /hostA/datafile is on hostB
|