Create user and group --------------------- Credentials -> Local Users -> Add Full Name: fireflyiii Username: firefly3 Disable Password: Data: Objects: Check public to select all objects Click Backup After successfull backup, close pgAdmin on truenas Migrating database ------------------ # Refresh Dockge window/tab and start fireflyiii in Dockge # After successfull startup of fireflyiii and postgress, stop fireflyiii from docker cmd line docker stop firefly # In truenas shell # copy back up file(s) to fireflyiii backups folder cp -vr /mnt/stpool1/apps/pgadmin/storage/stuurmcp_telkomsa.net/$(date -I) /mnt/SSD1/docker/data/fireflyiii/pgbackups #replace $(date -I) with date when backup was made if not today jlmkr shell docker cd /mnt/data/fireflyiii # remove all files/folders from pgdata; if any are already in this folder, move it to another folder before executing next command rm -r /mnt/data/fireflyiii/pgdata/* # Start fireflyiii with Dockge, then: docker stop firefly docker exec firefly_postgresql psql -U firefly -d postgres -c "DROP DATABASE \"firefly\";" docker exec firefly_postgresql psql -U firefly -d postgres -c "CREATE DATABASE \"firefly\";" docker exec firefly_postgresql psql -U firefly -d firefly -f /mnt/backups/$(date -I)/fireflyiii-backup.sql docker start firefly Post startup if no migration was performed ------------------------------------------- # https://docs.firefly-iii.org/references/faq/install/ # The documentation mentions the following to initialise / seed the database on a clean install: # In docker shell: docker exec firefly php artisan migrate:refresh --seed --force docker exec firefly php artisan firefly-iii:upgrade-database Stop truenas fireflyiii ----------------------- # In truenas shell heavyscript app --stop fireflyiii # NB: Do NOT stop fireflyiii with truenas gui Troubleshooting --------------- # If you get persistent db authentication errors: Ensure that the service name (name of the stanza), host name and container name of the postgresql container in the compose.yml file and the DB_HOST value in the .env file are all the same If you need to log into db -------------------------- docker exec -it firefly_postgresql bash psql -U firefly -d firefly