Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Restore options

By default, raspiBackup restores the entire system in normal backup mode. In partition-oriented mode, however, you can select which partitions are to be restored, which partitions are to be restored. If the partition-oriented mode the rsync backup type is used, a delta restore can also be selected for a restore (option -00). This means that only the changed files and deleted files from the backup are copied with `rsync and files not present in the backup - i.e. newly created files - are deleted. This enables a very fast restore.

Independent of raspiBackup, a manual restore of the data with the previously used backup tools dd, tar or rsync is also possible. This requires appropriate knowledge of the Linux backup tools.

It is also possible to manually restore individual files/directories.



-C: Check for badblocks

When formatting, mkfs.ext4 -c is used to check for bad blocks. Note: This increases the restore time.

OptionDefaultIn InstallerConfiguration name
-coffnoDEFAULT_CHECK_FOR_BAD_BLOCKS

-d: Restoredevice

Device on which the backup is restored.

OptionDefaultIn InstallerConfiguration name
-dnonenoDEFAULT_RESTORE_DEVICE

Example: -/dev/sda

Note: The parameter must be a device and not a partition. It must not be a partition number such as /dev/sda1 must not be present.

Attention: This device is usually completely deleted and recreated! With tar and and rsync backup, the size of the root partition is automatically automatically reduced or enlarged if the target device has a different size than the backed up system. Of course, there must still be enough space on the target device for the data of the source system on the target device. If there is not enough space, the restore will abort.

-N: Extensions to be called before and after the restore

Activation of own script extensions (plugins). See this page, which also offers two sample extensions that control the CPU temperature and the memory usage before and after the backup run.

option namedefaultin installerconfiguration name
-NnonenoDEFAULT_EXTENSIONS

-R: External root partition

This option can be used to restore backups of systems that use an external partition as root partition, such as USB sticks or hard disks. This is only possible if a tar or rsync backup is available. The parameter defines the partition on which the root directory is to be restored. is to be restored. Example: /dev/sdb1.

OptionDefaultIn InstallerConfiguration name
-Rnono

Note: Only use this option if both an SD card and an external external root file system is used on one device. Otherwise the -d option is sufficient. This option is only useful for older Raspberries that do not yet support USB boot.

Attention: The partition will be reformatted. Therefore, make sure that it is the correct partition and that the partition is large enough to accommodate the partition of the backup!

Note: This option is only available if the normal backup mode has been used. was used. In partition-oriented mode (option -P) no external root partition can be root partition can be backed up.

--resizeRootFS: Customize root file system

During the restore, the root partition can be resized to the maximum available size of the target device of the external partition. If the option is switched off with --resizeRootFS-, the root partition is created as large as it was on the original system. If the -P option is used, the last partition on the partition on the device is extended. If there are more than 2 partitions, it is not the root partition.

OptionDefaultIn the installerConfiguration name
--resizeRootFSyesno

-T: Partitions to restore

With the partition-oriented rsync backup, partitions can be select partitions that are to be restored. With "*" all partitions are all partitions are restored.

OptionDefaultIn InstallerConfiguration name
-T"1,2"noDEFAULT_PARTITIONS_TO_RESTORE

--updateUUIDs: Customize the UUIDs

When restoring, the PARTUUIDs, UUIDs and LABELs are always of the original are always restored. This usually causes problems if you mount the restored system is mounted on the original system. With this option, new PARTUUIDs, UUIDs and LABELs are generated during the generated during the restore.

OptionDefaultIn InstallerConfiguration name
--updateUUIDsyesno

-Y: Automated restore

By default, before the restore, the system displays what the restored device currently and asks whether you really want to overwrite the device. If the restore is to be automated, this option suppresses the query.

Caution: This may result in the wrong device being overwritten unintentionally and delete important data.

OptionDefaultIn InstallerConfiguration name
-Yoffno

In addition, the option DEFAULT_YES_NO_RESTORE must be set accordingly in the configuration file must be set accordingly for thei Restoredevices.

-0: No partitioning

No new partition layout is created on the target device, but the existing one is used. existing one is used. This allows you to perform the desired partitioning before the restore and then restore a backup. For details see FAQ #6

OptionDefaultIn InstallerConfiguration name
-0offno

-00: No partitioning and formatting

This will not format the partitions selected with the -T option during an rsync partition-oriented backup. is performed. This speeds up the restore process considerably, as only new, changed or deleted files are synced, changed or deleted files are synchronized.

OptionDefaultIn InstallerConfiguration name
-00offno

-1: Ignore partitioning errors

The partition layout will be created on the SD card as it exists on the source device and any errors that are detected - including the error that the target error that the target device is too small - are ignored. See FAQ #6 for more details. more details.

OptionDefaultIn InstallerConfiguration Name
-1offno

Note: This option can have unexpected results. Only use this option if you know what you are doing.