Skip to content

Instantly share code, notes, and snippets.

@zopyx
Created January 3, 2019 06:25
Show Gist options
  • Save zopyx/770a4a0e0b34de5250d0ce54a4e509ec to your computer and use it in GitHub Desktop.
Save zopyx/770a4a0e0b34de5250d0ce54a4e509ec to your computer and use it in GitHub Desktop.
import fs
import fs.mirror
source = fs.open_fs('webdav://admin:XXXX@localhost:6080/exist/webdav/db/onkopedia')
target = fs.open_fs('webdav://admin:XXXX@localhost:8984/webdav/onkopedia')
fs.mirror.mirror(source, target, workers=4)
@adamretter
Copy link

adamretter commented Jan 3, 2019

Just to mention that you will likely also need your users and index definitions, these can be found under /exist/webdav/db/system/config/db/onkopedia and /exist/webdav/db/system/security respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment