Rclone to onedrive doesn't sync subdirectories - Macintosh

What is the problem you are having with rclone?

MacOs 10.14.6. Trying to sync local folder named "OneDrive" with Microsoft OneDrive on the web. It syncs the top level directory, but does not sync subdirectories. How can I get it to sync top level and directories and all subdirectories?

Run the command 'rclone version' and share the full output of the command.

rclone v1.63.1
- os/version: darwin 10.14.6 (64 bit)
- os/kernel: 18.7.0 (x86_64)
- os/type: darwin
- os/arch: amd64
- go/version: go1.20.6
- go/linking: dynamic
- go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

Microsoft OneDrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

cat /usr/local/bin/rcloneMount
rclone mount --vfs-cache-mode full --vfs-cache-max-size 100G --dir-cache-time 9999h --vfs-cache-max-age 9999h --allow-non-empty --volname OneDrive --tpslimit 3 --tpslimit-burst 0 remote_onedrive: ~/OneDrive

The rclone config contents with secrets removed.

rclone config
Current remotes:

Name                 Type
====                 ====
remote_onedrive      onedrive

cat /Users/bmeacham/.config/rclone/rclone.conf
[remote_onedrive]
type = onedrive
token = {"access_token":"<token contents removed>","expiry":"2023-08-27T22:54:45.079785-05:00"}
drive_id = 950df50906f3422c
drive_type = personal

A log from the command with the -vv flag

rclone config -vv
2023/08/28 14:32:58 DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "config" "-vv"]
2023/08/28 14:32:58 DEBUG : Using config file from "/Users/bmeacham/.config/rclone/rclone.conf"
Current remotes:

Name                 Type
====                 ====
remote_onedrive      onedrive

hi,
rclone mount, on its own, does not copy/sync files, so must be using a program to do that.
what program and what does its log show?

can create a test, something like this:

# create the subdir structure on local and a zero byte file.
rclone touch ~/root/subdir/file.ext -v
# show the subdir structure on local
rclone tree ~/root
# copy to mount
rclone copy ~/root ~/OneDrive:root -vv
# wait for rclone mount to transfer the file and then show the result.
rclone tree remote_onedrive:root

Thanks. That's the clue I needed. I thought it did. Consider this topic closed.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.