This script automatically creates a tar.gz archive of the firefly database and copies it to a secure offsite location.
It does NOT save the encryption key. Store that somewhere else securely (e.g. password manager).
I have firefly-backup running via a daily cronjob.
This restores a .tar.gz backup of the firefly database to a docker volume. The script takes the filename of the backup as an argument and assumes a static location where those files are found.