[Mapbender-users] PostgreSQl DB-Sicherung

Markus Lütke Brintrup geodaten at wipflerplan.de
Fri Feb 9 01:22:10 PST 2018


Hallo Liste,

 

ich möchte mit pg_dump.exe meine Mapbender-Systemdatenbank in PostgreSQl
regelmäßig per Batchscript sichern.

Die Batchdatei funktioniert auch einwandfrei, nur habe ich es noch nicht
hinbekommen, dass das Passwort des Datenbanknutzers aus der pgpass.conf
übernommen wird. Bisher sieht das bei mir so aus:

 

Batchdatei: 

c:\Programme\PostgreSQL\9.6\bin\pg_dump.exe -U postgres -Fc -f
C:\DB-Backups\PostgreSQL\backup_mapbender3.backup mapbender3

 

pgpass.conf (C:\Users\administrator.WIPFLERPLAN\AppData\postgresql):

*:5432:mapbender3:<User>:<Passwort>

 

Wenn ich die Batch-Datei ausführe, muss ich das Passwort immer noch manuell
eintippen.

 

Hat jemand eine Idee?

 

Viele Grüße,

Markus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20180209/52897201/attachment.html>


More information about the Mapbender_users mailing list