Skip to content

Instantly share code, notes, and snippets.

View jbhammon's full-sized avatar
🍩
Professional dev, amatuer donut tourist

Jackson Hammond jbhammon

🍩
Professional dev, amatuer donut tourist
View GitHub Profile
@jbhammon
jbhammon / firefly-iii-backuper.sh
Last active July 9, 2023 22:18 — forked from dawid-czarnecki/firefly-iii-backuper.sh
Script to backup Firefly III database, uploads and config files installed with docker-compose
#!/bin/bash
files_to_backup=(.env .db.env .fidi.env docker-compose.yml )
info() { echo -e "\\033[1;36m[INFO]\\033[0m \\033[36m$*\\033[0m" >&2; }
warn() { echo -e "\\033[1;33m[WARNING]\\033[0m \\033[33m$*\\033[0m" >&2; }
fatal() { echo -e "\\033[1;31m[FATAL]\\033[0m \\033[31m$*\\033[0m" >&2; exit 1; }
intro () {
echo " ====================================================="