Skip to content

Instantly share code, notes, and snippets.

@scandav
Created September 21, 2022 18:10
Show Gist options
  • Save scandav/8b50ae7daa56bd08acfdc7f69e74da58 to your computer and use it in GitHub Desktop.
Save scandav/8b50ae7daa56bd08acfdc7f69e74da58 to your computer and use it in GitHub Desktop.
Export from Web Annotator container
  1. Establish ssh connection to otpc99.unibe.ch.
  2. run docker command: sudo docker exec -it webannotator_celery_1 celery call web_annotator.tasks.create_export_partial --kwargs='{"project_id":6, "recipient":"davide.scandella@unibe.ch", "host":"http://dome.artorg.unibe.ch:8080/annotator"}' changing project id to desired value. To check project ids: http://dome.artorg.unibe.ch:8080/annotator/admin/web_annotator/project/.
  3. You should receive an email to the link for export.
  4. If you don't receive it:
    1. Navigate to http://otpc99.unibe.ch:5555/ in your browser and check export status (it should be failed).
    2. The exported archive is in /home/otlartorg/web_annotator/data-storage/tmp, just pick and scp the one with the latest creation date.
    3. Example scp command to copy to local computer: scp otpc99:/home/otlartorg/web_annotator/data-storage/tmp/ae2d168aa557414fb1f9c5db901e25ac.zip Documents/development/amd-annotation/data_analysis/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment