This commit is contained in:
2026-03-18 11:32:41 +03:00
parent ab1d4c72fa
commit b268cedad6
5 changed files with 378 additions and 70 deletions

View File

@ -2,12 +2,6 @@
set -exu
SERVER=root@185.103.252.32
PSQL="sudo -u postgres psql"
DB=db2026
scp schema.sql data.sql "$SERVER:/tmp/$DB/"
ssh $SERVER \
"chmod -R 777 /tmp/$DB;" \
"$PSQL -d $DB -e -q -f /tmp/$DB/schema.sql;" \
"$PSQL -d $DB -e -q -f /tmp/$DB/data.sql;"
source env.sh
psql -e -q -f schema.sql
psql -e -q -f data.sql