
This kind of thing can quickly destroy data on flash based systems as during the boot up period the SD card under goes a lot of WRITES and you never want the power failing when linux is booting as the chance for corruption is very high at that time. Don’t forget what happens when the UPS runs out of battery life and then the power comes back on and fails in and out. Never pull the USB plug unless the server is shutdown correctly and also protect your system from this with a UPS.
Use a UPS: Dirty shutdowns are when you interrupt the power when the system is running. What is the point of backing up if the files already contain corruption? The point I am trying to make here is, I do not like to make backups of a system that has been running for any length of time. Sure you can buy ECC ram, and use methods like parity hard drives to error check creating a ‘better’ servers to run Openhab on, but then the cost of having a HARDWARE backup goes up. Never backup a system that has been running a long time: Bit rot, soft error (and many other terms you can google for more info to help you sleep) all work to destroy data over time as computers do make mistakes which then accumulate. Downtime should be able to be fixed in under a minute plus booting time by any family member. A full hardware backup ready to go, not just a software backup. Is your backup files stored on that same device? I like the cheap raspberry PIx and SD cards because I wish to always keep a second one around setup ready to go.
Have a hardware backup as well as a software backup: What happens if your Openhab hardware gets stolen or the hardware physically breaks. Some things to consider about your backup method are: I wanted to explain why I chose this method and some topics which not all users will be familiar with as this particular method/system is different.
Larger cards have faster read and write specs.Ĭlonezilla appears to only do the second feature so would require a partition resize before the backup is made to achieve the first feature. Unlike Win32diskimager that creates very large images, PHDM creates a 2gb image for my Openhab backup even when taking a full image of a 128gb card. It creates images that save space when most of your SD card is empty.No need to use the linux program “parted” or “gparted” to resize partitions.
You can restore the image created on a 64gb card back to a smaller 8gb SD card just by ticking a resize box in the program.The Paragon program is great for two reasons.