[Tile-serving] [openstreetmap/osm2pgsql] osm2pgsql-replication init - putting DB password into command (Discussion #1747)

Sergey Serpikov notifications at github.com
Tue Aug 16 08:08:25 UTC 2022


Hello! 

Try to do this:
``` 
#!/bin/bash

HOST='localhost';
PORT='5435'; 
DB='osm'; 
USER='postgres'; 
PASSWORD='qwertyasdf123'

osm2pgsql-replication init -d $DB -H $HOST -P $PORT -U $USER
```

and got next err:
```
#!/bin/bash
GREEN='\033[1;32m'
NC='\033[0m' # No Color

HOST='localhost';
PORT='5435'; 
DB='osm'; 
USER='postgres'; 
PASSWORD='qwertyasdf123'

osm2pgsql-replication init -d $DB -H $HOST -P $PORT -U $USER
```

In [docs](https://osm2pgsql.org/doc/man/osm2pgsql-replication-1.6.0.html#OPTIONS%20%E2%80%99osm2pgsql-replication%20init%E2%80%99) I cannot find password parameter, also there is no transfer here:
[https://github.com/openstreetmap/osm2pgsql/blob/08d1e1cdcd075afff9e56894ae26ffe9a6bc303b/scripts/osm2pgsql-replication#L82](https://github.com/openstreetmap/osm2pgsql/blob/08d1e1cdcd075afff9e56894ae26ffe9a6bc303b/scripts/osm2pgsql-replication#L82)

Additionally, --password (or -W) argument of osm2pgsql-replication init doesnt work

Could you highlight solution? 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/discussions/1747
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/repo-discussions/1747 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220816/9bcdbb28/attachment.htm>


More information about the Tile-serving mailing list