Upload BBB recordings to Nextcloud
The snippet can be accessed without any authentication.
Authored by
Boris Budini
#!/bin/sh
#Nextcloud Connection
URL=https://%URL%/remote.php/dav/files/
USER=%USERNAME%
PASSWORD=%PASSWORD (If using 2fa, use a token)%
BASE_FOLDER=%FOLDER-NAME (based from the list of folder the user sees when logged in, string shouldnt end with slash%
#Not neccesary to edit below
#Concatinations
DIR_URL=$URL$USER'/'$BASE_FOLDER'/'$1
WEBM_URL=$URL$USER'/'$BASE_FOLDER'/'$1'/'$1'.webm'
/usr/bin/curl -u $USER:$PASSWORD -X MKCOL $DIR_URL
/usr/bin/curl -u $USER:$PASSWORD -T /var/bigbluebutton/published/presentation/$1/video/webcams.webm $WEBM_URL
Please register or sign in to comment