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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size pibackup-0.0.11-py3-none-any.whl (5.6 MB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size pibackup-0.0.11.tar.gz (5.9 kB) | File type Source | Python version None | Upload date | Hashes View |
Hashes for pibackup-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab64a0c398db29ceafbe0990ed10372321780c592ee9c9e231ab587b7d0f3aab |
|
MD5 | f00efd1ee5663ae1bf798579293f549d |
|
BLAKE2-256 | 37c0401b12a462bb2421a1250de59fd3541df2849ee9231b7372c0230619188f |