Rclone copy problem without any warning?

Hello everyone,

I'm new here and to the RClone.
I'm using Rclone on my raspberry pi 4.
I'm trying to test it to copy a file called test.txt to sharepoint.
Sharepoint with onedrive and is made in the config file and if i mount it i see all the directory's and files so thats working.
But if i try to use the next command.:
rclone copy test.txt onedrive:Logboeken2020/test.txt
I get no error but the files is'nt copyed.
Can somebody help, i'm totaly new to this

I use rclone version.: rclone v1.52.2 - os/arch: linux/arm - go version: go1.14.4

My config.:

type = onedrive
drive_type = documentLibrary

A log from the command with the -vv flag

rclone copy test.txt onedrive:Logboeken2020/Logboek2020/test.txt -vv
2020/07/23 15:32:25 DEBUG : rclone: Version "v1.52.2" starting with parameters ["rclone" "copy" "test.txt" "onedrive:Logboeken2020/Logboek2020/test.txt" "-vv"]
2020/07/23 15:32:25 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2020/07/23 15:32:25 DEBUG : fs cache: renaming cache item "test.txt" to be canonical "/home/pi"
2020/07/23 15:32:27 DEBUG : test.txt: Size and modification time the same (differ by -283.660424ms, within tolerance 1s)
2020/07/23 15:32:27 DEBUG : test.txt: Unchanged skipping
2020/07/23 15:32:27 INFO  : 
Transferred:   	         0 / 0 Bytes, -, 0 Bytes/s, ETA -
Checks:                 1 / 1, 100%
Elapsed time:         0.0s

2020/07/23 15:32:27 DEBUG : 5 go routines active

It's telling you the file exists already on the destination and doesn't need to be copied as they are the same.

Are you not seeing the file on the other side?

That's also going to make a folder called test.txt on the other side which I'd guess isn't what you want. You can just supply the directory/folder it should be copied to.

hello and welcome to the forum

rclone copy test.txt onedrive:Logboeken2020/Logboek2020 -vv

Thank you so mutch all, it works great.
What i just now need to get working is how to inplant that line into php.

you might to create a rclone mount

thats what i already have

so it should be easy to get php to run a cp command

i hope so, i never used it before.

If i use the php copy command i get access denied , but if i use rclone copy command i don't so i must find a command in php where i can use copy in prompt envirioment

I've got it work :grinning:
One question about that copy command of rclone.
Is there also a possibility to delete the file after copy from destination location?

Do you mean delete the file from the source? If so then rclone move is what you want.

That did the trick, thank you all :+1:

Just one small question and then i'm finished.
Must i mount onedrive to use copy/move from rclone?

No, there is no reason to mount if you just want to use copy and move.

A mount is only needed if you want that machine to mount the remote as a drive letter.

Thx again :grinning:

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