Skip to content

Instantly share code, notes, and snippets.

@brettpetch
Created October 14, 2020 20:59
Show Gist options
  • Save brettpetch/4a846c2391f5ec7e5cae3a40c56f0bdc to your computer and use it in GitHub Desktop.
Save brettpetch/4a846c2391f5ec7e5cae3a40c56f0bdc to your computer and use it in GitHub Desktop.

How to clone an OWL Resources / Dropbox tab to your OneDrive:

Install rclone on your system of choice: https://rclone.org/downloads/

Go to the OWL Resources tab for the class you're going to clone. Copy the link located under the 'transfer files' tab located at the top of the page. Go back to rclone

run rclone config in your command line, press n then enter enter the name of a remote (your source), for this we go to OWL. Set the source to webdav then input the URL from OWL. Press enter, then type in your owl login credentials and keep pressing enter until you reach a yes or no. When you get the yes/no, press y, then hit enter. You've now setup a remote.

To add onedrive to rclone, rclone config then press n then call it onedrive, then type onedrive press enter twice to skip the client ID / client secret section (you'll use a genaric one), then use auto config (press 'y'), it should open a web browser. Login to your UWO address, then when it asks which remote, press 0, enter, then 0 again. This should authorize you. You should then get a big print out. Press y to accept, then hit enter.

Press q to exit rclone config.

To transfer, use the name of the webdav remote you created in the following syntax:

rclone copy owl3405:/ onedrive:/3405 --transfers=6 -P

Once you run this, it should start copying everything from your owl site to onedrive. If you need to stop the tranfer at any point, press ctl-c. It will stop the transfer. Any web links in the folders will not work full disclaimer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment