From 6ababec328c348c1907545dbfd7f3a0fb431f3d8 Mon Sep 17 00:00:00 2001 From: Colas Geier Date: Tue, 20 Aug 2024 19:21:50 +0200 Subject: [PATCH] transfert cadastre to another bdd --- 0_FONCIER/CADASTRE/transfert_cadastre.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 0_FONCIER/CADASTRE/transfert_cadastre.py diff --git a/0_FONCIER/CADASTRE/transfert_cadastre.py b/0_FONCIER/CADASTRE/transfert_cadastre.py new file mode 100644 index 0000000..1ccaacf --- /dev/null +++ b/0_FONCIER/CADASTRE/transfert_cadastre.py @@ -0,0 +1,6 @@ + + # 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="*_202407" --format=custom | pg_restore -h 91.134.194.221 -U cgeier --dbname="cadastre" \ No newline at end of file