Sign inSign up

n404/ccu3-backup

By n404

•Updated about 1 month ago

Please see: https://github.com/Trickfilm400/ccu3-backup

Image
Internet of things
0

1.8K

n404/ccu3-backup repository overview

⁠Please see: https://github.com/Trickfilm400/ccu3-backup⁠

⁠HomeMatic CCU Auto-Backup

This is a small script which periodically (at the moment: daily) fetches a backup of your CCU Device and uploads it into a S3 Storage (for example: Minio) If the S3 upload fails, it will be saved into a local directory (currently the working directory, /app)

⁠Config

ENVDescriptionRequired/Default
MINIO_HOSTS3 Endpoint of your storage serverrequired
MINIO_BUCKETS3 Bucket to save intorequired
MINIO_ACCESS_KEYS3 Access Key with write permissions into the given bucketrequired
MINIO_SECRET_KEYS3 Secret key correspoding to the access keyrequired
HOMEMATIC_USERNAMEHomematic User with backup permission (probably an Admin user)required
HOMEMATIC_PASSWORDcorresponding passwordrequired
HOMEMATIC_HOSTURL / Host to access the CCU Devicerequired

Or simply copy the .env.example file to .env and edit the values.

⁠Usage

Simple docker run: docker run --env-file .env -d --name ccu3-backup n404/ccu3-backup

Docker Compose Version:

services:
  ccu3-backup:
    image: n404/ccu3-backup
    container_name: ccu3-backup
    restart: unless-stopped
    env_file:
      - .env
⁠Todo (Contributions are welcome)
  • todo: before start: check for all necessary env variables (username hostname access token etc.)
  • add an env variable for disabling S3 and use local storage by default
  • add a useful logging library for displaying better time data in console logs
  • add a config for the time schedule, when to back up

© 2023-2024 Trickfilm400

Tag summary

Content type

Image

Digest

sha256:e7575106c…

Size

25.4 MB

Last updated

about 1 month ago

docker pull n404/ccu3-backup