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

5. Compare the original Linux kernel with the restored Linux kernel.
localhost:~ $ cmp /boot/vmlinux* /temp/boot/vmlinux*
If no differences are found between the two files, no message will be displayed.
Backup the Linux kernel (NAS)
1. Ensure that you are in the root directory.
localhost:~ $ cd /
2. Back up the Linux kernel using tar.
localhost :~ $ tar cvf <mountpoint>/kernel.tar ./boot/vmlinux*
NOTE: <mountpoint> is the path to the NFS share configured on the StoreOnce appliance.
Restore the Linux kernel (NAS)
1. Create a temporary folder to restore the backup into.
localhost:~ $ mkdir temp
localhost:~ $ cd /temp
2. Restore the Linux kernel to the temporary folder.
localhost:~ $ tar xvf <mountpoint>/kernel.tar
NOTE: <mountpoint> is the path to the NFS share configured on the StoreOnce appliance.
3. Compare the original Linux kernel with the restored Linux kernel.
localhost:~ $ cmp /boot/vmlinux* /temp/boot/vmlinux*
If no differences are found between the two files, no message will be displayed.
Backup and restore files using TAR in Linux 15