Onedrive creating folders outside of those being synced

What is the problem you are having with rclone?

In short, running rclone sync appears to result in the creation of additional (strangely named) folders in the root of OneDrive, not related to those being backed up.

In more detail: I set up a OneDrive Personal remote using all of the default options in the config command, and then ran a number of sync operations to mirror files from local storage to the remote. All of these sync operations worked purely within the folder 'Desktop' on OneDrive. These commands appeared to work correctly, resulting in the expected deletion/addition/modification of files within the OneDrive/Desktop folder.

However, around the time the last command finished, I noticed a folder named 'Документы' in the root of OneDrive. Deleting this resulted shortly after in a folder named 'Dokumenty'. From experience, OneDrive will regularly recreate a 'Documents' folder in the root, and so my best guess is that this issue is in some way related to that behaviour. As a complete beginner with rclone, however, I do not know why my use of the tool would affect what language OneDrive would use, nor how to avoid this.

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

rclone 1.60.1
- os/version: fedora 38 (64 bit)
- os/kernel: 6.5.5-200.fc38.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.3
- go/linking: dynamic
- go/tags: none

This is obviously not the latest version of rclone, but is the only one presently provided by the package manager for my distro.

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

OneDrive Personal

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

rclone sync -v -c ~/Documents onedrive:Desktop/Documents

(as well as various others prior to this syncing subfolders of Documents)

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

As expected from the version number, the command is not available.

As a result of the subject of this post, and not knowing for certain I am correct as to the rough cause, I am not currently comfortable giving rclone access to my OneDrive, and I do not have a spare account to use to reproduce the issue. The config for the account was deleted when the issue arose (as part of various just-in-case security changes), and running 'rclone config show' indeed shows an empty config. The account was at the time set up as type OneDrive Personal, using all the default settings in the rclone config command, if this helps.

I appreciate that this question does not follow the full template provided, and as such if the result of this post is simply that I cannot ask without a newer version and/or providing more details on the config, then no worries. I am hoping, however, that the issue is a simple beginner mistake on my part and that the resolution will be accordingly obvious to those with more experience.

You should not use rclone from a package manager as you'll get old versions. Please remove and update it using the install as they will be much better than using an old version.

Validate the limitations here and use the flags depending on your setup.

Since you didn't include any config, I'm not sure if you are using crypt or not.

There's no logfile of the issue either so best to update your rclone, recreate the issue and share the remainder of the information as that will be how we help you.

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