|
|
От: |
Maniacal
|
|
| Дата: | 07.02.24 12:01 | ||
| Оценка: | |||
pg_dump --host=GRAPHICS-FT --username=postgres --role=postgres --dbname=atmosphere --blobs --encoding=UTF8 --format=d --file=backup
psql --host=192.168.1.3 --dbname=atmosphere --username=postgres -c "DROP SCHEMA IF EXISTS public CASCADE" 2>nul 1>nul
psql --host=192.168.1.3 --dbname=atmosphere --username=postgres -c "CREATE SCHEMA public" 2>nul 1>nul
pg_restore -c --format=directory --host=192.168.1.3 --username=postgres --dbname=atmosphere --role=postgres --if-exists backup
SET PGPASSWORD=<пароль>