How to restore via command line

Getting the binaries

Start the restore cd (>2.0) or download the binaries from http://buildserver.urbackup.org/restore_cd_2.tar.xz (32bit Linux) or https://buildserver.urbackup.org/restore_cd_2_amd64.tar.xz (64bit Linux).

You can enter a console on the restore cd via pressing CTRL+ALT+F2.

Mount the server filesystem

Mount the server filesystem via smbmount, sshfs, nfs, ... Let's assume the backup storage folder is available as /media/server/urbackup. Forum post for more detailed instructions.

Restore MBR

To restore the mbr run following command (if you want to restore to /dev/sda). On the restore cd you first have to become root (sudo su) and then change to the home folder (cd /root):


./urbackuprestoreclient --restore-mbr /media/server/clientname/Image_C_20121221-1212.vhd.mbr -o /dev/sda

Read MBR

Run

partprobe


to force the kernel to reread the partition table.

Restore data

If sda1 is the C partition:


./urbackuprestoreclient --restore-image /media/server/clientname/Image_C_20121221-1212.vhd -o /dev/sda1

Sometimes there is a "system reserved" Windows volume. In this case you have to restore both the "system reserved" partition and the actual C partition. E.g. via:

./urbackuprestoreclient --restore-image /media/server/clientname/Image_SYSVOL_20121221-1212.vhd -o /dev/sda1
./urbackuprestoreclient --restore-image /media/server/clientname/Image_C_20121221-1212.vhd -o /dev/sda2

On systems with UEFI firmware you also have to restore the EFI System Partition (this is backed up since UrBackup 2.0):

./urbackuprestoreclient --restore-image /media/server/clientname/Image_SYSVOL_20121221-1212.vhd -o /dev/sda1
./urbackuprestoreclient --restore-image /media/server/clientname/Image_ESP_20121221-1212.vhd -o /dev/sda2
./urbackuprestoreclient --restore-image /media/server/clientname/Image_C_20121221-1212.vhd -o /dev/sda4