Fill file drop with scripts
Sometimes data is generated automatically somewhere and you want to move it to a specific Sciebo folder. Preferably in an automated way.
In this case, you can share the folder via a link and create a share with write permission (and password).
The link will look something like this:
https://uni-muenster.sciebo.de/s/XphYPtnTxc2MDm0
and the password could be secter
. The part after the /s/
is the
username that you would use to interact with the webdav interface https://uni-muenster.sciebo.de/public.php/webdav/
and
the password is the corresponding password.
You can now send a request to the Sciebo webdav interface for example with Curl and upload a file data.csv
via:
curl -u "XphYPtnTxc2MDm0:geheim" -T "daten.csv" https://uni-muenster.sciebo.de/public.php/webdav/daten.csv
Note that the webdav interface does not have an update verb (as far as we know), i.e. if you want to overwrite a file,
you must first delete the file using the following command:
curl -u "XphYPtnTxc2MDm0:geheim" -X DELETE https://uni-muenster.sciebo.de/public.php/webdav/daten.csv