Rclone uploads to Onedrive Business are invisible

What is the problem you are having with rclone?

I sucessfully connected to onedrive business, and uploaded a bunch of files (first via a restic backup, then manually using rclone copy). I can see the files alright when I use rclone ls. But I cannot see them neither on the onedrive webclient nor on the windows desktop client. There, the directory exists, but it is shown as empty. How can I be sure the files were even transferred?

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

rclone v1.62.2

  • os/version: Microsoft Windows 11 Pro 22H2 (64 bit)
  • os/kernel: 10.0.22621.1265 Build 22621.1265.1265 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.20.2
  • go/linking: static
  • go/tags: cmount

Are you on the latest version of rclone? You can validate by checking the version listed here: Rclone downloads
yes

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

Microsoft Onedrive for Business

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

rclone copy c:\DumpStack.log fil_onedrive/Backup_t14_restic_rclone
rclone ls fil_onedrive/Backup_t14_restic_rclone

The rclone config contents with secrets removed.

[fil_onedrive]
type = onedrive
region = global
token = {"access_token"://token_removed//,"token_type":"Bearer","refresh_token": //token_removed//,"expiry":"2023-05-08T12:17:42.4458981+02:00"}
drive_id = b!HRdNE9I_IEGIoSvnmnf8rK8cW2Dg8htNmCWJ7gXQh5jdjNR_4pO0Rrk-JaMHftfS
drive_type = business

hello and welcome to the forum,

remotes needs a colon character, so
fil_onedrive/Backup_t14_restic_rclone
should be
fil_onedrive:Backup_t14_restic_rclone

the files were never uploaded to onedrive.
if you enable debug output, would see that.

That was it, thanks a ton Jojo! My earlier copy command just created a subfolder somewhere in my windows directory.

Just a short follow-up: How do I enable debug output? Did you mean '--verbose'?

For DEBUG logging -vv is the best. For INFO logging -v. (-v is a synonym for --verbose)

for debug output to terminal, add -vv
for debug output to a file, try something like
--log-level=DEBUG --log-file=c:\path\to\rclone.conf

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