Configure rclone for OneDrive and SharePoint

last modified

2023–9–5

Based on https://rclone.org/opendrive/

Install Debian package rclone.

rclone config

OneDrive

Give these responses:

e/n/d/r/c/s/q> n                for "New remote"
name> OneDrive
Storage> onedrive               for "Microsoft OneDrive"
client_id>
client_secret>
region> global                  for "Microsoft Cloud Global"
y/n> n                          'Edit advanced config' – no
y/n> y                          'Use auto config?' – yes
<browser opens>                 log in
config_type> onedrive           for "OneDrive Personal or Business"
config_driveid> <pick option>
y/n> y                          for 'Drive OK?' – yes
y/e/d> y                        for 'Keep this "OneDrive" remote?' – yes
e/n/d/r/c/s/q> q                for "Quit config"

SharePoint Psychology

Give these responses:

e/n/d/r/c/s/q> n                for "New remote"
name> Psychology
Storage> onedrive               for "Microsoft OneDrive"
client_id>
client_secret>
region> global                  for "Microsoft Cloud Global"
y/n> n                          'Edit advanced config' – no
y/n> y                          'Use auto config?' – yes
<browser opens>                 log in
config_type> search             for "Search for a Sharepoint site"
config_search_term> Psychology
config_site> <pick option>
config_driveid> <pick option>
y/n> y                          for 'Drive OK?' – yes
y/e/d> y                        for 'Keep this "Psychology" remote?' – yes
e/n/d/r/c/s/q> q                for "Quit config"