Scheduled cloud backup for Raspberry Pi running smart home systems like fhem or iobroker
Project description
Who ever has suffered from corrupted SD-cards, even if new and “high quality” - here’s relief. A scheduled configure-once-and-forget-it backup solution for smart home systems running on linux base, esp Raspberry Pi. Covered at date are fhem and iobroker.
Building on the well made pieces of software rclone and schedule.
Features
Install once and forget
Lightweight background process
Automatic weekly backup of smart home system
Taking care of backup hygiene, i.e. keeping only defined number of backups
Mirroring backups to cloud drive of choice (take what you have, gdrive, dropbox, you name it)
Tested on Python 3.6
Prerequisites
Python 3.6 with pip
Usage
Install from PyPi
$ sudo pip3 install pibackup
Run config
$ pibackup-config
ibackup - smart home backup system
>>> main
s) Setup config file for pibackup
c) Configure rclone cloud drive
a) Add cron job at reboot to start backup
q) Quit config
s/c/q>
…and go through the simple three steps within the dialogue:
generate config file (enter s)
setup rclone (enter c)
generate crontab entry to run at boot (enter a)
Just follow the instructions on screen.
more to follow...
Finally edit ~/.conf/pibackup/config.json to your liking, especially adapt
system type (fhem or iobroker)
backup folder name for cloud drive
{
"system": {
"type": "fhem"
},
"rclone": {
"drive_name": "drive:",
"cloud_path": "/backups/fhem/"
},
"schedules": {
"backup_local": "Wednesday",
"clean_local": "Thursday",
"cloud_sync": "Sunday"
}
}
more to follow...
Documentation
More to follow.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pibackup-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1813484d76cf2d04aa6931a49f3666571498690df8669e6ecf3ca566c225683 |
|
MD5 | b64dfb79654661ad9c52552c30d32d91 |
|
BLAKE2b-256 | a9a58b6cb1912f6c69d4ae2aeba71f89bb2232e718e64510e8a0789b788098bb |