How to create a clone at the end of a backup
Note
This feature is available starting with raspiBackup version 0.7.3 and as of now in Beta
raspiBackup can restore a backup to a locally connected device immediately after creating it. This provides a backup that can be used right away to immediately restart a failed device or an OS that no longer boots by switching the boot medium. Without this feature, an existing backup must first be restored and requires more time. If the rsync backup type is used, the restore is simply a synchronization with the backup and completes very quickly. A tar backup type always is a full restore of the backup and therefore takes much longer. A dd backup type is not supported.
Steps to enable cloning:
-
Create a backup with cloning disabled.
-
Restore the backup to the clone device
-
Enable cloning
-
Command line
When starting the backup from the command line, you must also specify the option
--clone <Clone Device>.<Clone Device>refers to the locally connected device to which the current backup is to be synchronized or restored. -
Installer
In the installer, configure
<Clonegerät>atM3->C10. After that, you no longer need to specify the--cloneoption on the command line. The regular backup then will also create a clone all the time. -
Update the configuration file /usr/local/etc/raspiBackup.conf
The cloned device has to be configured in the DEFAULT_CLONE_DEVICE option.
-
Note
The clone device will be overwritten by the backup. For this reason, raspiBackup performs various checks to prevent accidental overwriting of other connected devices, and then the cloning process is immediately aborted.
Warning
In certain configurations, the Raspberry Pi may boot from the clone device after a reboot. This can occur especially when booting via USB from a USB hard drive or USB SSD and the cloning device is also connected via USB.
Note
If the rsync backup type is used, a backup must be restored to the clone device once to initialize the clone, so that subsequent backups can simply be synchronized. For details see here
If you want to disable cloning, you must use the installer to delete the cloned device at M3->C10. If you want to restore a backup manually, you must first disable cloning.