*********************************************************

john's notes

*********************************************************

note: most of these commands are for HP-UX

to setup nfs between hostA and hostB

  1. on hostA: ls -al /datafile
  2. on hostA: vi /etc/exports
  3. on hostA: add line:
    /datafile -anon=65534,access=hostB,root=hostB
  4. on hostb: mkdir /hostA/datafile
  5. on hostA: /usr/etc/exports -a
  6. on hostB: mount hostA:/datafile /hostA/datafile
  7. on hostB: cd /hostA/datafile
  8. on hostB: ls -al
  9. 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

  1. on hostB: cd /hostA/datafile (if not mounted see setup of nfs)
  2. on hostB: tar cvf - . | (cd /datafile; tar xvf -)
  3. on hostB: ls -al are the files there?
  4. 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

  1. on hostB: cd /hostA/datafile (if not mounted see setup of nfs)
  2. on hostB: find . /hostA/datafile -depth | cpio pdumxv /datafile
  3. on hostB: ls -al are the files there?
  4. on hostB: cd ..
note: /datafile is on hostA, while /hostA/datafile is on hostB
*********************************************************

john's home page. -- HTML tags page. -- cool awk tricks -- find commands -- lvm info --
System Administration Humor (?):
SysAdmin field guide -- SysAdmin song -- never say... --


EMAIL TO: john@wagoneers.com Copyright © 1997 John Meister All rights reserved.