I have installed my RPI4 with the latest openhabian Image 1.6b with only one internal 32GB micro SD card connected. Now after all is working and configured I want to start to setup the manual way for the auto backup as described in the openhabian docs.
My first question is, do I have to use an 64GB micro SD card for the backup?
What are the best steps to do after the internal one fails?
After swapping the card to the backup one, which size I need to buy for the new replacement 32GB or 64GB?
What is to do afterwards to get the backup running again?
The backup card has to be as large as the internal one or larger.
If later on you get a replacement card then that one has to be larger-or-equal than the source (the backup card, that is).
Best is to buy 3 identical cards right away.
On #4 what do you mean by “the backup” ? SD mirroring or the “real” (Amanda) backup ?
thanks for your answer. With backup I mean SD mirroring. The docs suggest the following setup:
“get an 16 GB SD card. Also get another 32 GB or larger SD card and a USB card reader”
The problem I see is that if you swap in the backup card and do a raw dump back to the new replacement card it needs to be again double size, because you can never be sure to get the correct size again. Worst case at the end is that everytime after SD-card corruption an SD-card with double size is required.
what happens if the backup card has some blocks less than the working one? I will try it right now with an 32GB card with hopefully excat the same size. Yesterday I got some error messages like storage.mount not found during the finalization of the raw partition copy. Do I have to install this service at first?
“openhabian@openHABianDevice:~ $ systemctl status storage.mount
Unit storage.mount could not be found.”
it has finished now again with the failure mentioned above:
2021-01-19_10:28:17_CET [openHABian] Setting up automated SD mirroring and backup… OK
Taking a raw partition copy, be prepared this may take long such as 20-30 minutes for a 16 GB SD card
sed: can’t read /storage/syncmount/etc/systemd/system//storage.mount: No such file or directory
2021-01-19_11:35:00_CET [openHABian] Checking for default openHABian username:password combination… OK
2021-01-19_11:35:00_CET [openHABian] We hope you got what you came for! See you again soon
I’m sorry again if I made a mess- I read through a LOT of docs yesterday and might got confused with everything. So I’ll try to explain my understandings so far, any remarks or corrections will be highly appreciated:
An installation on 32GB card will require a 64GB external card to backup to.
The new auto-backup feature will mirror the internal card to the external card twice a year- It’s a long process (tried it now- about an hour) but it’s negligible as mentioned above.
In between Amanda will take incremental backups of the system.
In addition I can use the backup script of ‘openhab-cli’ to backup just the openhab config files- this should backup also everything set using the UI (Things, Items, Links, Rules).