<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Romeo -- <br></div><div><br></div><div>You should look into osmosis' capabilities to update existing databases using change entities (replication), see <br></div><div><a href="https://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.47#Replication_Tasks">https://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.47#Replication_Tasks</a><br></div><div>and<br></div><div><a href="https://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.47#--write-apidb-change_.28--wdc.29">https://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.47#--write-apidb-change_.28--wdc.29</a><br></div><div><br></div><div>This list is to discuss data imports, not development questions. If you want to discuss this further, you'll have better luck reaching knowledgeable people on the <a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a> list.<br></div><div><br></div><div id="sig78141864"><div class="signature">--<br></div><div class="signature">  Martijn van Exel<br></div><div class="signature">  m@rtijn.org<br></div><div class="signature"><br></div></div><div><br></div><div><br></div><div>On Sat, Jan 12, 2019, at 07:47, romeo wrote:<br></div><blockquote type="cite" id="fastmail-quoted"><p>Imported openstreetmap to my local network, using this guide:<br></p><p><a href="https://github.com/openstreetmap/openstreetmap-website/blob/master/INSTALL.md" class="fastmail-quoted-moz-txt-link-freetext">https://github.com/openstreetmap/openstreetmap-website/blob/master/INSTALL.md</a><br></p><p>Some problems with ruby and gems but solved.<br></p><p>Working great.<br></p><p>How can i make update of database an preserve acounts for map
      editor<br></p><p>Update of database:<br></p><p>1. <code>osmosis --truncate-apidb host="localhost"
        database="openstreetmap" user="openstreetmap" password=""
        validateSchemaVersion="no"</code><br></p><p><code>2. </code><code><code>osmosis --read-xml
          file=greater-london-latest.osm --write-apidb host="localhost"
          database="openstreetmap" user="openstreetmap" password=""
          validateSchemaVersion="no" with a new osm downloaded from
          geofabrik</code></code><br></p><p><code><code>3. after restarting rail server and access <a href="http://localhost:3000" class="fastmail-quoted-moz-txt-link-freetext">http://localhost:3000</a> i have no accounts in map editor.</code></code><br></p><p><code><code>I must redefine accounts and passwords.</code></code><br></p><p><code><code></code></code><br></p><div>_______________________________________________<br></div><div>Imports mailing list<br></div><div>Imports@openstreetmap.org<br></div><div>https://lists.openstreetmap.org/listinfo/imports<br></div><div><br></div></blockquote><div><br></div></body></html>