Skip to main content

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.


  • 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


Python 3.6 with pip


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

…and go through the simple three steps within the dialogue:

  1. generate config file (enter s)
  2. setup rclone (enter c)
  3. 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

  1. system type (fhem or iobroker)
  2. 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...


More to follow.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pibackup, version 0.0.11
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

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page