OpenEnergyDashboard / OED

Open Energy Dashboard (OED)
Mozilla Public License 2.0
76 stars 296 forks source link

automatic site backup #590

Open huss opened 3 years ago

huss commented 3 years ago

We have a shell command to backup a database by using: sudo docker-compose exec database pg_dump -U oed > /home/eddy/Database_Dumps/<site name>/dump_$(date +%Y-%m-%d"_"%H_%M_%S.sql) It would be nice to have a script provided by OED to do this so it could be put into a cron job to happen regularly. Would also want it described somewhere on the admin and/or install pages.

huss commented 2 years ago

PR #759 proposed a solution to this issue and is a good start. It was closed since it was not completed. Someone needs to make the needed edits so it can be merged.