How to Restore a Linux Server Using Bare Metal Restore This article refers to firmware version 5.4 and higher, and the Barracuda Linux Backup Agent 5.4 and higher. Use the steps in this article to restore Linux distributions (distros) that support Live CDs. Linux distros can only be restored to bare metal; for example, Red Hat, Fedora, Ubuntu, Gentoo, and SUSE Linux. Note that the mkfs commands in this example are based on GNU Grub version 2 which by default supports 256-bit index nodes. If you are using GNU Grub version 1 when creating the file system, you must specify 128- bit index nodes. Use the following steps to restore an entire file system backed up using the Barracuda Linux Backup Agent. Step 1. Install the Barracuda Linux Backup Agent The following steps are based on Ubuntu Desktop 12.04 x64, but apply to Linux distros that support Live CDs, for example, Red Hat, Fedora, Ubuntu, Gentoo, and SUSE Linux. 1. Boot into a live CD environment that supports your hardware, for example, Ubuntu 12.04 x64. 2. Configure an IP address, and verify network connectivity to the Barracuda Backup appliance containing the data source files you want to restore. 3. In the Barracuda Backup web interface, go to the SYSTEM > Software Downloads page. 4. Download and unzip the Barracuda Linux Backup Agent to your live booted environment. 5. Unpack the tar file: tar -xvf barracuda_backup_agent-x.x.x.tgz For example: 6. On the live booted environment, and change the directory to the Barracuda Linux Backup Agent directory, for example: /Desktop/agent-5.3-lin$ 7. Install the agent: How to Restore a Linux Server Using Bare Metal Restore 1 / 6
./install For example: Step 2. Partition, Format, and Create the File System The destination file system(s) must be empty. If you have multiple mount points, you must mount them such that the backup paths match during restore. For example, if you have a separate root and home partition, mount the root partition at /mnt/system and the home partition at /mnt/system/home. Configure the restore to target the path /mnt/system/. 1. Open a terminal window, and enter the following command to create the partition: fdisk /dev/sda 2. Press Return. Enter N to create a new partition, and press Return. 3. Enter P the primary partition, and press Return. 4. Enter the partition number, for example, enter 1 for partition 1. Press Return. 5. Press Enter to select the default first sector, and then press Enter again to select the default last sector. 6. Enter W, and press Enter to write the changes: How to Restore a Linux Server Using Bare Metal Restore 2 / 6
7. Enter fdisk -l and press Return to view the partitions: 8. Enter mkfs.ext4 /dev/sda1 and press Return to create the file system: 9. Enter the mount point, and press Return. For example: Step 3. Restore the File System Using the Barracuda Linux Backup Agent 1. Log in to the Barracuda Backup Server, and go to RESTORE > Restore Browser page. 2. Select and expand the Linux Server you wish to restore; select File Systems. 3. In the right pane, click the top check box to select all contents. 4. Click Restore selected items at the top of the screen. 5. In the Restore dialog, enter the target IP address of the live booted machine, and enter the mount point to which to restore, for example, /mnt/data/: How to Restore a Linux Server Using Bare Metal Restore 3 / 6
6. Click Start Restore. To view the restore progress, go to the Reports > Restore page: Step 4. Mount the Linux System Directories and Install a Bootloader Complete the following steps when the restore is 100% complete and successful. 1. Open a terminal window, and enter the following commands to mount the Linux system directories and install a bootloader using your mount points: 2. Enter update-grub2 and press Return to update the grub bootloader: How to Restore a Linux Server Using Bare Metal Restore 4 / 6
3. Reboot the system. How to Restore a Linux Server Using Bare Metal Restore 5 / 6
How to Restore a Linux Server Using Bare Metal Restore 6 / 6