Skip to content
Snippets Groups Projects

Upload BBB recordings to Nextcloud

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Boris Budini
    script.sh 552 B
    #!/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
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment