Skip to content

Instantly share code, notes, and snippets.

@ThiefMaster
Created June 21, 2017 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThiefMaster/a57f64cd9b1b2babe334991db6dc4b6e to your computer and use it in GitHub Desktop.
Save ThiefMaster/a57f64cd9b1b2babe334991db6dc4b6e to your computer and use it in GitHub Desktop.
# use your actual postgres/zodb connection details here
export PG=postgresql:///indico
export ZODB=zeo://127.0.0.1:9675
# use the id of your "system" user. create one first if you have none
export JANITOR_UID=123
# specify the path to your indico archive dir
export ARCHIVE=/opt/indico/archive
# specify the name of the StorageBackends indico.conf entry pointing to fs:$ARCHIVE
export ARCHIVE_BACKEND=default
indico db upgrade 25d478c9d690
indico-zodbimport $PG $ZODB global_ip_acl
indico-zodbimport $PG $ZODB global_settings
indico-zodbimport $PG $ZODB event_shorturls -q
indico-zodbimport $PG $ZODB event_papers -q --janitor-user-id $JANITOR_UID --archive-dir $ARCHIVE --storage-backend $ARCHIVE_BACKEND
indico-zodbimport $PG $ZODB event_data -q
indico-zodbimport $PG $ZODB badges_posters -q --janitor-user-id $JANITOR_UID --archive-dir $ARCHIVE --storage-backend $ARCHIVE_BACKEND
indico db upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment