What is the problem you are having with rclone?
I am copying files from local to local using rclone sync
command. I want it to create .rclonelink files on the destination. However, --links
option makes it create actual symlinks instead.
For example, in dir1
, I have these two files (I am on Windows; this is the output of running ls -l
using bash):
total 1
lrwxrwxrwx 1 ulysses 197121 33 Sep 22 10:49 link -> /c/Users/ulysses/temp/dir1/target
-rw-r--r-- 1 ulysses 197121 6 Sep 22 10:44 target
If I sync it to dir2
, I want two files: target
and link.rclonelink
. However, I get a file target
and a symlink link
although in the logs I see the filename of the copied file is link.rclonelink
.
Run the command 'rclone version' and share the full output of the command.
rclone v1.68.0
- os/version: Microsoft Windows 11 Pro 23H2 (64 bit)
- os/kernel: 10.0.22631.4169 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.23.1
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Local filesystem.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone sync --progress --links dir1 dir2
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
2024/09/22 10:24:33 NOTICE: Config file "C:\\Users\\ulysses\\AppData\\Roaming\\rclone\\rclone.conf" not found - using defaults
; empty config
### Double check the config for sensitive info before posting publicly
A log from the command that you were trying to run with the -vv
flag
2024/09/22 10:58:16 DEBUG : rclone: Version "v1.68.0" starting with parameters ["C:\\Users\\ulysses\\AppData\\Local\\Microsoft\\WinGet\\Packages\\Rclone.Rclone_Microsoft.Winget.Source_8wekyb3d8bbwe\\rclone-v1.68.0-windows-amd64\\rclone.exe" "sync" "--progress" "--links" "-vv" "dir1" "dir2"]
2024/09/22 10:58:16 DEBUG : Creating backend with remote "dir1"
2024/09/22 10:58:16 NOTICE: Config file "C:\\Users\\ulysses\\AppData\\Roaming\\rclone\\rclone.conf" not found - using defaults
2024/09/22 10:58:16 DEBUG : local: detected overridden config - adding "{b6816}" suffix to name
2024/09/22 10:58:16 DEBUG : fs cache: renaming cache item "dir1" to be canonical "local{b6816}://?/C:/Users/ulysses/temp/dir1"
2024/09/22 10:58:16 DEBUG : Creating backend with remote "dir2"
2024/09/22 10:58:16 DEBUG : local: detected overridden config - adding "{b6816}" suffix to name
2024/09/22 10:58:16 DEBUG : fs cache: renaming cache item "dir2" to be canonical "local{b6816}://?/C:/Users/ulysses/temp/dir2"
2024/09/22 10:58:16 DEBUG : link.rclonelink: Need to transfer - File not found at Destination
2024/09/22 10:58:16 DEBUG : Local file system at //?/C:/Users/ulysses/temp/dir2: Waiting for checks to finish
2024/09/22 10:58:16 DEBUG : target: Size and modification time the same (differ by 0s, within tolerance 100ns)
2024/09/22 10:58:16 DEBUG : target: Unchanged skipping
2024/09/22 10:58:16 DEBUG : Local file system at //?/C:/Users/ulysses/temp/dir2: Waiting for transfers to finish
2024/09/22 10:58:16 DEBUG : link.rclonelink: md5 = 3902af01bb1f14434cdca9911e7d7d3a OK
2024/09/22 10:58:16 INFO : link.rclonelink: Copied (new)
2024/09/22 10:58:16 DEBUG : Waiting for deletions to finish
Transferred: 33 B / 33 B, 100%, 0 B/s, ETA -
Checks: 1 / 1, 100%
Transferred: 1 / 1, 100%
Elapsed time: 0.0s
2024/09/22 10:58:16 INFO :
Transferred: 33 B / 33 B, 100%, 0 B/s, ETA -
Checks: 1 / 1, 100%
Transferred: 1 / 1, 100%
Elapsed time: 0.0s
2024/09/22 10:58:16 DEBUG : 3 go routines active