What is the problem you are having with rclone?
if the letter case of a directory is changed, rclone deletes the existing case version, but doesn't upload new one. running the sync again then uploads it. this is possibly a microsoft bug, because rclone logs a checksum it received. i suspect it didn't make up the checksum.
Run the command 'rclone version' and share the full output of the command.
rclone v1.61.1
- os/version: Microsoft Windows Server 2019 Datacenter 1809 (64 bit)
- os/kernel: 10.0.17763.3406 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.19.4
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Microsoft Sharepoint
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone sync --verbose -vv --progress --transfers=6 "E:\Jared\Test Directory" "ServerSharePointBackupnew:Jared/Test Directory"
The rclone config contents with secrets removed.
[ServerSharePoint]
type = onedrive
token = yes it works
drive_id = asdfasdf
drive_type = documentLibrary
[ServerSharePointBackupnew]
type = crypt
remote = ServerSharePoint:Server New
directory_name_encryption = false
password = yes i know
A log from the command with the -vv
flag
i will paste 3 logs here. they are of syncs of a folder called "tEST being renamed to Test" and said folder contains a file "test.txt" they are as follows:
- sync with no changes to show everything running it's normal course
- sync with the directory name changed, showing rlone uploading the new directory and kicking out the old and receiving the checksum.
- rclone again uploading the new directory, this time it actually appears in the remote. i'm hoping ya'll can take my word for it that after sync 2 (shown in log 2) i can't see the file on the web gui for said remote. there is also the added evidence that with sync 3 (shown in log 3) rclone goes through the upload again and says "copied (new)" again.
log 1.
2023/01/04 20:42:03 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "sync" "--verbose" "-vv" "--progress" "--transfers=6" "E:\\Jared\\Test Directory" "ServerSharePointBackupnew:Jared/Test Directory" "--log-file=C:\\Users\\Administrator\\Desktop\\log.txt"]
2023/01/04 20:42:03 DEBUG : Creating backend with remote "E:\\Jared\\Test Directory"
2023/01/04 20:42:03 DEBUG : Using config file from "C:\\Users\\Administrator\\AppData\\Roaming\\rclone\\rclone.conf"
2023/01/04 20:42:03 DEBUG : fs cache: renaming cache item "E:\\Jared\\Test Directory" to be canonical "//?/E:/Jared/Test Directory"
2023/01/04 20:42:03 DEBUG : Creating backend with remote "ServerSharePointBackupnew:Jared/Test Directory"
2023/01/04 20:42:03 DEBUG : Creating backend with remote "ServerSharePoint:Server New/Jared/s09dg7f09ds8f7g9sd8f79g78d0sg7s0d9g7f"
2023/01/04 20:42:05 DEBUG : Creating backend with remote "ServerSharePoint:Server New/Jared/Test Directory"
2023/01/04 20:42:07 DEBUG : Encrypted drive 'ServerSharePointBackupnew:Jared/Test Directory': Waiting for checks to finish
2023/01/04 20:42:07 DEBUG : tEST/test.txt: Size and modification time the same (differ by -641.8295ms, within tolerance 1s)
2023/01/04 20:42:07 DEBUG : tEST/test.txt: Unchanged skipping
2023/01/04 20:42:07 DEBUG : Encrypted drive 'ServerSharePointBackupnew:Jared/Test Directory': Waiting for transfers to finish
2023/01/04 20:42:07 DEBUG : Waiting for deletions to finish
2023/01/04 20:42:07 INFO : There was nothing to transfer
2023/01/04 20:42:07 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 1 / 1, 100%
Elapsed time: 4.5s
2023/01/04 20:42:07 DEBUG : 4 go routines active
log 2.
2023/01/04 20:44:30 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "sync" "--verbose" "-vv" "--progress" "--transfers=6" "E:\\Jared\\Test Directory" "ServerSharePointBackupnew:Jared/Test Directory" "--log-file=C:\\Users\\Administrator\\Desktop\\log.txt"]
2023/01/04 20:44:30 DEBUG : Creating backend with remote "E:\\Jared\\Test Directory"
2023/01/04 20:44:30 DEBUG : Using config file from "C:\\Users\\Administrator\\AppData\\Roaming\\rclone\\rclone.conf"
2023/01/04 20:44:30 DEBUG : fs cache: renaming cache item "E:\\Jared\\Test Directory" to be canonical "//?/E:/Jared/Test Directory"
2023/01/04 20:44:30 DEBUG : Creating backend with remote "ServerSharePointBackupnew:Jared/Test Directory"
2023/01/04 20:44:30 DEBUG : Creating backend with remote "ServerSharePoint:Server New/Jared/s09dg7f09ds8f7g9sd8f79g78d0sg7s0d9g7f"
2023/01/04 20:44:33 DEBUG : Creating backend with remote "ServerSharePoint:Server New/Jared/Test Directory"
2023/01/04 20:44:35 DEBUG : Encrypted drive 'ServerSharePointBackupnew:Jared/Test Directory': Waiting for checks to finish
2023/01/04 20:44:35 DEBUG : Encrypted drive 'ServerSharePointBackupnew:Jared/Test Directory': Waiting for transfers to finish
2023/01/04 20:44:35 DEBUG : Test/tpb8mh3pae5u8mlk35jf4nhra0: Starting multipart upload
2023/01/04 20:44:36 DEBUG : Test/tpb8mh3pae5u8mlk35jf4nhra0: Uploading segment 0/32 size 32
2023/01/04 20:44:36 DEBUG : Test/test.txt: quickxor = 74f43a7cdef09e1283681c1d0132bb7a36c7eec9 OK
2023/01/04 20:44:36 INFO : Test/test.txt: Copied (new)
2023/01/04 20:44:36 DEBUG : Waiting for deletions to finish
2023/01/04 20:44:37 INFO : tEST/test.txt: Deleted
2023/01/04 20:44:37 INFO : tEST: Removing directory
2023/01/04 20:44:37 DEBUG : Encrypted drive 'ServerSharePointBackupnew:Jared/Test Directory': deleted 1 directories
2023/01/04 20:44:37 INFO :
Transferred: 32 B / 32 B, 100%, 16 B/s, ETA 0s
Checks: 1 / 1, 100%
Deleted: 1 (files), 1 (dirs)
Transferred: 1 / 1, 100%
Elapsed time: 7.0s
2023/01/04 20:44:37 DEBUG : 10 go routines active
log 3.
2023/01/04 20:45:47 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "sync" "--verbose" "-vv" "--progress" "--transfers=6" "E:\\Jared\\Test Directory" "ServerSharePointBackupnew:Jared/Test Directory" "--log-file=C:\\Users\\Administrator\\Desktop\\log.txt"]
2023/01/04 20:45:47 DEBUG : Creating backend with remote "E:\\Jared\\Test Directory"
2023/01/04 20:45:47 DEBUG : Using config file from "C:\\Users\\Administrator\\AppData\\Roaming\\rclone\\rclone.conf"
2023/01/04 20:45:47 DEBUG : fs cache: renaming cache item "E:\\Jared\\Test Directory" to be canonical "//?/E:/Jared/Test Directory"
2023/01/04 20:45:47 DEBUG : Creating backend with remote "ServerSharePointBackupnew:Jared/Test Directory"
2023/01/04 20:45:47 DEBUG : Creating backend with remote "ServerSharePoint:Server New/Jared/s09dg7f09ds8f7g9sd8f79g78d0sg7s0d9g7f"
2023/01/04 20:45:49 DEBUG : Creating backend with remote "ServerSharePoint:Server New/Jared/Test Directory"
2023/01/04 20:45:51 DEBUG : Encrypted drive 'ServerSharePointBackupnew:Jared/Test Directory': Waiting for checks to finish
2023/01/04 20:45:51 DEBUG : Encrypted drive 'ServerSharePointBackupnew:Jared/Test Directory': Waiting for transfers to finish
2023/01/04 20:45:51 DEBUG : Test/tpb8mh3pae5u8mlk35jf4nhra0: Starting multipart upload
2023/01/04 20:45:52 DEBUG : Test/tpb8mh3pae5u8mlk35jf4nhra0: Uploading segment 0/32 size 32
2023/01/04 20:45:52 DEBUG : Test/test.txt: quickxor = 677e1984d8df14020d6540e4f538fd3dbeff12e9 OK
2023/01/04 20:45:52 INFO : Test/test.txt: Copied (new)
2023/01/04 20:45:52 DEBUG : Waiting for deletions to finish
2023/01/04 20:45:52 INFO :
Transferred: 32 B / 32 B, 100%, 0 B/s, ETA -
Transferred: 1 / 1, 100%
Elapsed time: 5.6s
2023/01/04 20:45:52 DEBUG : 8 go routines active