Skip to main content

Scheduled cloud backup for Raspberry Pi running smart home systems like fhem or iobroker

Project description

https://img.shields.io/badge/pibackup-pypi-green.svg

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:

  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...

Documentation

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.

Source Distribution

pibackup-0.0.12.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distributions

pibackup-0.0.12-py3.7.egg (5.6 MB view hashes)

Uploaded Source

pibackup-0.0.12-py3-none-any.whl (5.6 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page