11 lines
770 B
Python
11 lines
770 B
Python
|
|
# RESTORE AU NOM DE LA BDD ORIGINE
|
|
# pg_dump -C -h localhost -U localuser dbname | psql -h remotehost -U remoteuser dbname
|
|
# pg_dump -C -h 172.17.0.2 -U postgres -d postgres --schema="07_202107" | psql -h 91.134.194.221 -U cgeier -d bd_cen
|
|
# RESTORE AU NOM DE LA BDD CIBLE
|
|
# pg_dump -C -h 172.17.0.2 -U postgres -d postgres --schema="*_202501" --format=custom | pg_restore -h 91.134.194.221 -U cgeier --dbname="cadastre"
|
|
|
|
|
|
# export PGPASSWORD="xxxxxx";pg_dump -C -h localhost -U cgeier -d cadastre --schema="*_202603" | psql -h 91.134.194.221 -U cgeier --dbname="bd_cen" -W
|
|
|
|
# export PGPASSWORD="xxxxxx";pg_dump -C -h 91.134.194.221 -U cgeier -d cadastre --schema="*_202603" --format=custom | pg_restore -h 91.134.194.221 -U cgeier --dbname="bd_cen" |