Go to file
Kai Vogelgesang 52ea97ba5b Update readme
2020-02-06 00:05:35 +01:00
backup.sh Add telegram bot functionality 2020-02-05 23:12:15 +01:00
decrypt.sh Add crypto 2020-02-05 21:44:58 +01:00
Dockerfile Add telegram bot functionality 2020-02-05 23:12:15 +01:00
README.md Update readme 2020-02-06 00:05:35 +01:00

Backupinator

A shell script running in a docker container that can be used for periodic backups.

Everything mounted to /in is put into a .tar.gz file, encrypted with a 256 bit random key, which is in turn encrypted with the ssh public keys provided in /keys.

A telegram bot can then be used to send the backup to one or multiple telegram chats.

Usage:

docker build -t backupinator .

docker run \
    -v /path/to/folder1:/in/folder1:ro \
    -v /path/to/folder2:/in/folder2:ro \
    -v /path/to/output:/output \
    -v /path/to/key1.pub:/keys/key1.pub:ro \
    -v /path/to/key2.pub:/keys/key2.pub:ro \
    -e TELEGRAM_BOT_TOKEN=verysecretbottoken \
    -e TELEGRAM_CHAT_IDS=1337,42069,-12345 \
    backupinator

Decryption

./decrypt.sh ~/.ssh/id_rsa.pub key-you.enc backup.tar.gz.enc