server / photos backup

I've just imported my photo's via Android and CLI. Should my backup scripts just focus on the upload folder for photos (inc thumbs) and then the persistent docker folder for the (PostgreSQL i believe?) Db, settings, users etc? Assuming same version, would those 2 bring me back to the same state when I deploy somewhere else?
2 Replies
Alex Tran
Alex Tran3y ago
You should keep the UPLOD_LOCATION and the location where the pg_data is stored at
jrasm91
jrasm913y ago
I would personally recommend using pgdumpall for a postgres backup. https://www.postgresql.org/docs/current/backup.html
PostgreSQL Documentation
Chapter 26. Backup and Restore
Chapter 26. Backup and Restore Table of Contents 26.1. SQL Dump 26.1.1. Restoring the Dump 26.1.2. Using pg_dumpall 26.1.3. Handling Large Databases …

Did you find this page helpful?