HP StoreOnce Backup System Linux and UNIX Configuration Guide (BB852-90952)

5. Compare the original kernel with the restored kernel.
# cmp /platform/`arch -k`/kernel/sparcv9/unix /temp/platform/`arch
-k`/kernel/sparcv9/unix
If no differences are found between the two files, no message will be displayed.
Back up the Solaris kernel (NAS)
1. Ensure you are in the root directory.
localhost:~ $ cd /
2. Back up the Solaris kernel using TAR.
localhost :~ $ tar cvf <mountpoint>/kernel.tar ./platform/`arch
-k`/kernel/sparcv9/unix
Restore the Solaris kernel (NAS)
1. Create a temporary folder to restore back up to.
localhost:~ $ mkdir /temp
localhost:~ $ cd /temp
2. Restore the Solaris kernel to the temporary folder.
localhost:~ $ tar xvf <mountpoint>/kernel.tar
3. Compare the original Solaris kernel with the restored HP-UX kernel.
localhost:~ $ cmp /platform/`arch -k`/kernel/sparcv9/unix
/temptemp/platform/`arch -k`/kernel/sparcv9/unix
If no differences are found between the two files, no message will be displayed.
Back up and restore files using TAR 35