A Docker image providing a command that transfers entities from a source to a target wiki.
docker run --rm ghcr.io/wbstack/transferbot \
-e CALLBACK_ON_SUCCESS="echo 'this worked'" -e CALLBACK_ON_FAILURE="echo 'this failed'" \
https://source.wikibase.cloud https://target.wikibase.cloud Q1 P1 Q2
Positional arguments to be passed are:
- The origin of the source wiki
- The origin of the target wiki
- (variadic) A whitespace separated list of entities to be transferred
An entity ID can be given in the format Q1
, which looks up the latest revision.
If you append a revision ID using @
like Q1@123
, the given revision ID will be used for this entity.
OAuth 1.0 credentials for the target wiki are provided using the following environment variables:
The OAuth consumer token used for authenticating against the target wiki.
The OAuth consumer secret used for authenticating against the target wiki.
The OAuth access token used for authenticating against the target wiki.
The OAuth access secret used for authenticating against the target wiki.
It's possible to provide commands that should be run when the script has finished.
If a value is set for this key, its content will be executed in case the script exits 0.
If a value is set for this key, its content will be executed in case the script exits non-zero.
This work is distributed under the BSD 3-Clause license.