NFS Services Administrator's Guide
Configuring and Administering NIS+
Administering NIS+
Chapter 5262
To Back Up NIS+ Tables
It is recommended that you back up your NIS+ tables at least once a day.
1. Create a directory for your flat files, and make it the current
directory:
mkdir /nis+files
cd /nis+files
2. Set the PATH variable to include /usr/lib/nis. If you are running
the C shell, type the following command:
setenv PATH $PATH:/usr/lib/nis
If you are running the Bourne or Korn shell, type the following
commands:
PATH=$PATH:/usr/lib/nis
export PATH
3. Issue the following commands to dump your NIS+ tables to files:
nisaddent -d aliases > aliases
nisaddent -d bootparams > bootparams
nisaddent -d ethers > ethers
nisaddent -d group > group
nisaddent -d hosts > hosts
nisaddent -d netgroup > netgroup
nisaddent -d netid > netid
nisaddent -d netmasks > netmasks
nisaddent -d networks > networks
nisaddent -d passwd > passwd
nisaddent -d protocols > protocols
nisaddent -d publickey > publickey
nisaddent -d rpc > rpc
nisaddent -d services > services
nisaddent -d trusted > trusted
nisaddent -d timezone > timezone
niscat auto_home.org_dir > auto_home
niscat auto_master.org_dir > auto_master
niscat auto_direct.org_dir > auto_direct
4. Make sure your NIS+ tables are fully checkpointed. Issue the
following command to check the size of your transaction log:
nislog | head -10