Backup and Restore Process

Now that our Source and Target environments can communicate with each other. We need to prepare our Target system for our Source /root, /usr, and /home migration to be successful. The data will be migrated via ufsdump/ufsrestore

  1. Let’s create a /root temporary mount point in our Target environment. The source /root data will be migrated to this mount point. As expected, the newly created mount point is empty (with only the default “lost+found” directory listed).
mount /dev/dsk/c0t1d0s0 /mnt
cd /mnt
ls

Charon SSP Connection

  1. Ufsdump and Ufsrestore can now be leveraged to migrate our /root data from Source to Target environment. Wait a few seconds for the DUMP: DUMP IS DONE message before proceeding to the next step.
rsh source 'ufsdump 0f - /' | ufsrestore rf -

Charon SSP Connection

  1. Explore the contents of the mount point now to ensure that our /root data was migrated successfully from Source to Target environment.
cd /mnt
ls

Charon SSP Connection

We will now repeat the same steps for /usr and /home data migrations but will also be utilizing compress and uncompress utilities to make our data transfer more efficient.

  1. Let’s create a /usr temporary mount point in our Target environment. The source /usr data will be migrated to this mount point. As expected, the newly created mount point is empty (with only the default “lost+found” directory listed).
mount /dev/dsk/c0t1d0s6 /mnt/usr
cd /mnt/usr
ls

Charon SSP Connection

  1. Ufsdump and Ufsrestore can now be leveraged to migrate our /usr data from Source to Target environment. Wait a few seconds for the DUMP: DUMP IS DONE message before proceeding to the next step.
rsh source 'ufsdump 0f - /usr | compress' | uncompress | ufsrestore rf -

Charon SSP Connection

As we have more content in the /usr partition and we are migrating over the network, it is best to use the compress and uncompress utilities to make the data transfer more efficient.

  1. Explore the contents of the mount point now to ensure that our /usr data was migrated successfully from Source to Target environment.
cd /mnt/usr
ls

Charon SSP Connection

  1. Lastly, let’s create a /home temporary mount point in our Target environment. The source /home data will be migrated to this mount point. As expected, the newly created mount point is empty (with only the default “lost+found” directory listed).
mount /dev/dsk/c0t1d0s7 /mnt/home
cd /mnt/home
ls

Charon SSP Connection

  1. Ufsdump and Ufsrestore can now be leveraged to migrate our /home data from Source to Target environment. Wait a few seconds for the DUMP: DUMP IS DONE message before proceeding to the next step.
rsh source 'ufsdump 0f - /home | compress' | uncompress | ufsrestore rf -

Charon SSP Connection

As we have more content in the /home partition and we are migrating over the network, it is best to use the compress and uncompress utilities to make the data transfer more efficient.

  1. Explore the contents of the mount point now to ensure that our /home data was migrated successfully from Source to Target environment.
cd /mnt/home
ls

Charon SSP Connection

  1. At this point all of our /root, /usr, and /home data has been migrated to our Target environment. Feel free to explore the Target /root, /usr, and /home partitions to ensure that everything was migrated properly.