add backup timer

This commit is contained in:
j 2026-01-26 09:23:57 +01:00
commit e3ae1367d6
5 changed files with 33 additions and 0 deletions

7
db/reload.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
pandoractl stop
sudo -H -u postgres dropdb pandora
sudo -H -u postgres createdb -T template0 --locale=C --encoding=UTF8 -O pandora pandora
zcat /srv/pandora/data/db/latest.psql.gz | pandoractl manage dbshell
pandoractl start