1,106
edits
Technician (talk | contribs) |
Technician (talk | contribs) |
||
Line 259: | Line 259: | ||
=== LDAP database === | === LDAP database === | ||
Make sure slapd is not running and delete the existing database '''on the new server (careful!)''': | |||
# Run on new server! | |||
systemctl stop slapd | |||
rm /var/lib/ldap/data.mdb | rm /var/lib/ldap/data.mdb | ||
Then copy over the database by running the following command from the old server: | Then copy over the database by running the following command from the old server: | ||
# Run on old server | |||
slapcat -n 1 | ssh feministwiki.dev 'sudo -u openldap slapadd -n 1' | slapcat -n 1 | ssh feministwiki.dev 'sudo -u openldap slapadd -n 1' | ||
Start slapd again in the new server afterwards: | |||
# Run on new server | |||
systemctl start slapd | |||
=== Contents of /var/www === | === Contents of /var/www === |