Restore image from btrfs

On Saturday I will be attempting a test restore of a server to our secondary environment. I have been reading on how to restore using the urbackuprestoreclient (https://urbackup.atlassian.net/wiki/spaces/US/pages/2981890/How+to+restore+via+command+line) but it talks about VHD’s. We’re not using VHD’s though.

Here’s the files we have from a given server. There are underlying disks this is a windows 2016 instance under VMWare. Given that I’m going to create a new blank VM with the same drive layout, what commands would I run to restore this back to 100%. I will be booting via ubuntu live usb.

Is it just as replacing the .VHD from the samples with .raw’s? The documentation could really use a couple samples on this.

200801-1734_Image_SYSVOL:
total 333184
-rwxr-x— 1 urbackup urbackup 472382976 Aug 1 17:36 Image_SYSVOL_200801-1734.raw
-rwxr-x— 1 urbackup urbackup 14416 Aug 1 17:36 Image_SYSVOL_200801-1734.raw.bitmap
-rwxr-x— 1 urbackup urbackup 14444 Aug 1 17:34 Image_SYSVOL_200801-1734.raw.cbitmap
-rwxr-x— 1 urbackup urbackup 28832 Aug 1 17:36 Image_SYSVOL_200801-1734.raw.hash
-rwxr-x— 1 urbackup urbackup 34404 Aug 1 17:34 Image_SYSVOL_200801-1734.raw.mbr
-rwxr-x— 1 urbackup urbackup 0 Aug 1 17:36 Image_SYSVOL_200801-1734.raw.sync

200801-1737_Image_C:
total 80051568
-rwxr-x— 1 urbackup urbackup 171204673024 Aug 1 18:05 Image_C_200801-1737.raw
-rwxr-x— 1 urbackup urbackup 5224752 Aug 1 18:05 Image_C_200801-1737.raw.bitmap
-rwxr-x— 1 urbackup urbackup 5224780 Aug 1 17:37 Image_C_200801-1737.raw.cbitmap
-rwxr-x— 1 urbackup urbackup 10449504 Aug 1 18:05 Image_C_200801-1737.raw.hash
-rwxr-x— 1 urbackup urbackup 34395 Aug 1 17:37 Image_C_200801-1737.raw.mbr
-rwxr-x— 1 urbackup urbackup 0 Aug 1 18:05 Image_C_200801-1737.raw.sync

200801-1737_Image_ESP:
total 101940
-rwxr-x— 1 urbackup urbackup 104333312 Aug 1 17:37 Image_ESP_200801-1737.raw
-rwxr-x— 1 urbackup urbackup 3184 Aug 1 17:37 Image_ESP_200801-1737.raw.bitmap
-rwxr-x— 1 urbackup urbackup 3212 Aug 1 17:37 Image_ESP_200801-1737.raw.cbitmap
-rwxr-x— 1 urbackup urbackup 6368 Aug 1 17:37 Image_ESP_200801-1737.raw.hash
-rwxr-x— 1 urbackup urbackup 34397 Aug 1 17:37 Image_ESP_200801-1737.raw.mbr
-rwxr-x— 1 urbackup urbackup 0 Aug 1 17:37 Image_ESP_200801-1737.raw.sync

Why don’t you want to use UrBackup Restore CD? It’s very simple to restore image bacup to new PC.
https://hndl.urbackup.org/Restore/urbackup_restore_2.3.1.iso

Screenshots here:

Is there any actual documentation on this on the restore CD? The screen shots are not super useful. I haven’t been able to find any for the CD.

I think currently not. Will be changed…

The raw files are just … raw image files. The only thing to be aware of is that the partitions are at half MB offset (1024*512). So

dd if=Image_C_200801-1737.raw of=/dev/sda2 bs=$((1024*512)) skip=1

restores them via command line.

losetup -f -r --show --direct-io=on --offset=$((1024*512)) Image_C_200801-1737.raw

gives you a block device that you could use e.g. partclone or ntfsclone on to clone to another block device to restore (e.g. ntfsclone --overwrite /dev/sda2 /dev/loop1).