Questo è un esempio su come configurare un collegamento in remoto con Rclone ad un gruppo Sharepoint
rclone config
Guida attraverso il percorso interattivo:
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> n
name> remote
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value.....
.....
XX / Microsoft OneDrive
"onedrive"
Storage> onedrive
Microsoft App Client Id
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_id>
Microsoft App Client Secret
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret
Edit advanced config? (y/n)
y) Yes
n) No
y/n> n
Remote config
Use auto config?
* Say Y if not sure
* Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n> y
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...
(inserire nel browser che si apre le credenziali dell'account di amministrazione di Onedrive)
Choose a number from below, or type in an existing value
1 / OneDrive Personal or Business
"onedrive"
2 / Sharepoint site
"sharepoint"
3 / Type in driveID
"driveid"
4 / Type in SiteID
"siteid"
5 / Search a Sharepoint site
"search"
Your choice> 5 search (invio ti da la lista dei gruppi sharepoint a cui sei iscritto)
Found 1 drives, please select the one you want to use:
0: OneDrive (name_group) id=b!Eqwertyuiopasdfghjklzxcvbnm-7mnbvcxzlkjhgfdsapoiuytrewqk
Chose drive to use:> 0
Found drive 'root' of type 'business', URL: https://org-my.sharepoint.com/personal/you/Documents
Is that okay?
y) Yes
n) No
y/n> y
[remote]
type = onedrive
token = {"access_token":"youraccesstoken","token_type":"Bearer","refresh_token":"yourrefreshtoken","expiry":"2018-08-26T22:39:52.486512262+08:00"}
drive_id = b!Eqwertyuiopasdfghjklzxcvbnm-7mnbvcxzlkjhgfdsapoiuytrewqk
drive_type = business
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
Note that rclone runs a webserver on your local machine to collect the token as returned from Microsoft. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on `http://127.0.0.1:53682/` and this it may require you to unblock it temporarily if you are running a host firewall.
Sincronizzare una cartella di file in remoto su di una cartella in locale:
`rclone -v sync remote:/Test/ /path/to/local/`
Sincronizzare una cartella di file in locale su di una cartella in remoto``
`rclone -v sync /path/to/local/ remote:/Test/`
Montare unità remota:
`rclone --vfs-cache-mode writes mount onedrive: /home/dado/onedrive/<br></br>`
- - - - - -
```cit. <https://rclone.org/onedrive/>