Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

I noticed there are a lot of raspiBackup users who use dd as backup method. There is a certain risk with dd which doesn't exist with tar of rasync. That's why I suggest better to use tar or rsync .

 

 

Why?

1)

dd saves a whole partition 1 to 1 on bit level. Read errors are detected an reported. But it's possible the file system has issues which happens usually when there is a power failure. This error will not be detected by dd and the partition is saved with filesystem errors without any warning or error message by dd. If this partition is restored the parittion also will have the filesystem errors. Now all following backups will have this filesystem error.and at some point in time when older backups will be deleted the last backup without a filesystem error will be deleted. If a restore is needed there is no backup without filesystem errors available any more. Now you have to hope there are no important files affected by the filesystem error. Otherwise the backup is unusable.

2)

During a restore of a dd backup the backup is written 1 to 1 on bit level on the SD card. If this SD card has bad blocks or is otherwise partially corropt you will not get any error messages from dd. If you now boot the restored backup you will get error messages during boot or the image will even not boot. Then raspiBackup useres will create a problem report. The root cause for the issue is a corrupted SD card but no issue with raspiBackup. I then ask the users to restore the backup on a brand new SD card and the issue is gone. These problem reports create unnecessary overhead which could be avoided when tar or rsync are used instead of dd.

 

And now?

It's quite easy to switch to tar. The same filesystem can be ussed on the backup patition. But a restore cannot be done any more with windowsprograms as Win32Diskimager or Etcher. But you can start raspiBackup on a Raspberry. If you have only one Raspberry just create a rescue SD card with raspiBackup and put it on a safe place where you can grab it when you have to restore a backup.

For rsync you need a etx2/3/4 filesystem on your backup partition which can be created on Linux. Restore also requires to run raspiBackup on a Linux box.

 

Welchen Backuptyp empfehle ich?

Die effizienteste Backupmethode ist rsync. Durch die Benutzung von Hardlinks werden nur Dateien kopiert die sich geändert haben und somit ist jeder ausser dem ersten Backupvorgang relativ schnell beendet. Ausserdem liegen die Backupdateien entpackt vor und auf sie kann sofort zugegriffen werden wenn nur mal ein paar Dateien aus dem Backup benötigt werden. Bei tar und dd muss man die Backups erst umständlich entpacken. Wer eine Synology als Backupsystem benutzen will sei hier auf Benutzung von Synology als Backupspace verwiesen.

 

Weiterführende Informationen

Wie funktionieren Hardlinks?

Welches Dateisystem kann auf dem Backupgerät benutzt werden?

Add comment

*** Note ***

Comments are welcome. But in order to reject spam posts please consider following rules:
  1. All comments are reviewed manually and it usually takes one day until a comment will be published.
  2. Comments with string http are rejected with message You have no rights to use this tag.
  3. You have to wait at least one hour until you can post another comment.