add backup timer
This commit is contained in:
parent
ccbde02107
commit
e3ae1367d6
5 changed files with 33 additions and 0 deletions
7
db/reload.sh
Executable file
7
db/reload.sh
Executable 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue