backup.sh | ||
decrypt.sh | ||
Dockerfile | ||
README.md |
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