I have a couple of Raspberry Pi on my home network, both running headless, providing various network and home automation services.
Both are running off Micro SD cards and run Raspbian OS. One is a Pi B+, connected via ethernet and the other is a Pi Zero, connected via WiFi.
The former is critical to the network as it acts as my main DHCP server as well as other things. If it goes down, I will be in a bit of trouble.
I don't trust the Micro SD card to hold up. I am also a bit worried about hard power downs causing config issues, when the domestic power cuts out for a power cut or an RCD trigger etc.
So, my question: what is the best way to do an automated, periodic backup of these systems. Ideally one that allows me to restore them very easily, without having to reinstall all software etc.
One approach is for me to maintain an install script of the various software services and config files, but this seems work heavy and error prone.
Ideally I'd like an unattended way of imaging the whole card to a backup file, at 3am or something. I have storage on the network that can hold the backup files.
Question:
I have a couple of Raspberry Pi on my home network, both running headless, providing various network and home automation services.
Both are running off Micro SD cards and run Raspbian OS. One is a Pi B+, connected via ethernet and the other is a Pi Zero, connected via WiFi.
The former is critical to the network as it acts as my main DHCP server as well as other things. If it goes down, I will be in a bit of trouble.
I don't trust the Micro SD card to hold up. I am also a bit worried about hard power downs causing config issues, when the domestic power cuts out for a power cut or an RCD trigger etc.
So, my question: what is the best way to do an automated, periodic backup of these systems. Ideally one that allows me to restore them very easily, without having to reinstall all software etc.
One approach is for me to maintain an install script of the various software services and config files, but this seems work heavy and error prone.
Ideally I'd like an unattended way of imaging the whole card to a backup file, at 3am or something. I have storage on the network that can hold the backup files.
Any ideas?