Sharepoint Data Sharing - ULJ-Yale/qunexsdk GitHub Wiki
QuNex Sharepoint site: https://yaleedu.sharepoint.com/sites/QuNex/Shared%20Documents
To upload QuNex data to the Sharepoint site:
Use rclone, Configure rclone
Example upload QuNex recipe file:
rclone copy --progress recipe.yaml Qunex_Sharepoint:
Once uploaded, go to the site and create a a public link to the file. Do this by clicking the three dots next to the file and selecting "Copy link". From the popup, click on the gear "Settings" and select "Anyone", then apply. The link will automatically be copied.
Add link to a wget command:
wget --show-progress -O name-of-file '<link>&download=1'
- Note the link needs to be in single quotes ''
- Note &download=1 needs to be appended to the end of the link
Example download recipe file:
wget --show-progress -O recipe.yaml 'https://yaleedu.sharepoint.com/:u:/s/QuNex/EbRPIvVA8WtAveirk6R7FZgBtkWyKmZmnRbv8qdqIrMbhA?e=puL9vu&download=1'