Use the appropriate tool to restore from your backup file. The following tools are available in the <path> of the rescue environment:
dd – Sector level backup or restore
fsarchiver – File system level backup or restore
tar – File level backup or restore
cpio – File level backup or restore
zip – pkzip compressor
gzip – gzip compressor (typically the fastest)
pigz – Multithreaded gzip compressor
bzip2 – bzip2 compressor
xz – xz compressor (typically the smallest file size)
pixz – Multithreaded xz compressor (similar to xz -T0)
If you prefer a tool that is not present, install the tool of your choice.
Example
To restore from a backup file made using the full disk backup example in Backing Up the Linux Partition Boot Disk in the Rescue Environment:
Boot the partition into the Linux rescue environment and access the partition boot disk.
For more information, see Starting a Linux Partition Image in Rescue Mode and Accessing the Linux Partition Boot Disk in the Rescue Environment.
Configure the rescue environment for accessing the network to read or write files.
For more information, see Configuring the Network Adapter in the Rescue Environment.
Mount the remote directory where the backup file is located. For example, to mount a Windows share named BackupShare located at 192.59.240.12, use the following command:
mount //192.59.240.12/BackupShare /mnt –o user=foo,domain=bar
Or to mount an exported NFS directory named BackupExport located at 192.59.240.18, use the following command:
mount.nfs 192.59.240.18:/BackupExport /mnt
Write the contents of the backup file to the boot disk:
xz -dc /mnt/backup-1.xz | dd of=/dev/sda
Note: In this example, the disk’s GPT PartitionGUID is overwritten by the restore process. If you restored a backup taken from a different partition, the EFI boot option stored in NVRAM will not refer to the correct disk. To rectify, you need to clear the EFI boot options so that s-Par rebuilds the boot options to reference the new disk’s GUID.The rescue environment includes a script to erase all the boot options; to run it, enter the following command:wipe-efi-boot
Proceed to Adjusting Settings for a Restored Linux Partition to configure or verify settings.