Skip to content

Import/Export

Import

wanderer supports bulk uploading of trails via an auto-upload folder. A cronjob fetches all files from this folder and uploads them automatically every 15 minutes. This feature is currently only available for docker installations. If you want to replicate it in a bare metal installation you will need to create your own cronjob using the web/cron.sh script.

Configuration

The following environment variables must be present in the wanderer-web docker container and set to valid values.

Environment VariableDescriptionDefault
UPLOAD_FOLDERPath to the auto-upload folder/app/uploads
UPLOAD_USERUsername of the account that will be the author of the uploaded trails
UPLOAD_PASSWORDPassword of the account that will be the author of the uploaded trails

Volume

Make sure to mount the upload folder as a volume to your host system. The default docker-compose.yml already includes this volume. Ensure that the mapped value matches the one in the UPLOAD_FOLDER environment variable.

Manually run the upload job

In case you do not want to wait until the next scheduled execution you can also run the job manually:

Terminal window
docker exec -it wanderer-web run-parts /etc/periodic/15min

Export

To export a single trail head over to /trails and select the trail you want to export. From the ⋮ menu select “Export”. You can export the route data either in GPX or in GeoJSON format. Furthermore, you can choose whether you want to include the photos and the summit book of the trail. In any case, wanderer will create a ZIP archive with all the data that is then downloaded.

You can also export all of your trails at once. To do so, head over to /settings/export and click “Export all trails”. The other steps remain analogous to exporting a single trail.