What is the problem you are having with rclone?
When you symlinks locally to locally with --links
, you do get text files with reference to the link but they do not have .rclonelink
Run the command 'rclone version' and share the full output of the command.
rclone v1.63.0
- os/version: darwin 13.4.1 (64 bit)
- os/kernel: 22.5.0 (arm64)
- os/type: darwin
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.20.5
- go/linking: dynamic
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Local
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
Setup:
$ tree src
src
โโโ file1.txt
โโโ link1.txt -> file1.txt
$ cat src/file1.txt
CONTENT
Then the rclone command:
rclone sync -vv --links src/ dst/
(see output below)
Now when you do
$ tree dst
dst
โโโ file1.txt
โโโ link1.txt
$ cat dst/link1.txt
file1.txt
So dst/link1.txt
is a text file pointing to file1.txt but is missing the .rclonelink
extension.
Side note: --copy-links
and --skip-links
work as expected
The rclone config contents with secrets removed.
N/A -- Local to Local
A log from the command with the -vv
flag
2023/06/30 15:47:36 DEBUG : rclone: Version "v1.63.0" starting with parameters ["rclone" "sync" "-vv" "--links" "src/" "dst/"]
2023/06/30 15:47:36 DEBUG : Creating backend with remote "src/"
2023/06/30 15:47:36 DEBUG : Using config file from "/Users/jwinokur/.config/rclone/rclone.conf"
2023/06/30 15:47:36 DEBUG : local: detected overridden config - adding "{b6816}" suffix to name
2023/06/30 15:47:36 DEBUG : fs cache: renaming cache item "src/" to be canonical "local{b6816}:/Users/jwinokur/rclone_demo/src"
2023/06/30 15:47:36 DEBUG : Creating backend with remote "dst/"
2023/06/30 15:47:36 DEBUG : local: detected overridden config - adding "{b6816}" suffix to name
2023/06/30 15:47:36 DEBUG : fs cache: renaming cache item "dst/" to be canonical "local{b6816}:/Users/jwinokur/rclone_demo/dst"
2023/06/30 15:47:36 DEBUG : file1.txt: Need to transfer - File not found at Destination
2023/06/30 15:47:36 DEBUG : link1.txt.rclonelink: Need to transfer - File not found at Destination
2023/06/30 15:47:36 DEBUG : Local file system at /Users/jwinokur/rclone_demo/dst: Waiting for checks to finish
2023/06/30 15:47:36 DEBUG : Local file system at /Users/jwinokur/rclone_demo/dst: Waiting for transfers to finish
2023/06/30 15:47:36 DEBUG : file1.txt: md5 = 9da8213efd566be4c7f5ebfa8d83af9a OK
2023/06/30 15:47:36 DEBUG : file1.txt.yulatef6.partial: renamed to: file1.txt
2023/06/30 15:47:36 INFO : file1.txt: Copied (new)
2023/06/30 15:47:36 DEBUG : link1.txt.rclonelink: md5 = bd01856bfd2065d0d1ee20c03bd3a9af OK
2023/06/30 15:47:36 ERROR : link1.txt.rclonelink: Failed to read link size: readlink /Users/jwinokur/rclone_demo/dst/link1.txt: invalid argument
2023/06/30 15:47:36 DEBUG : link1.txt.rclonelink.pobedoy8.partial: renamed to: link1.txt.rclonelink
2023/06/30 15:47:36 INFO : link1.txt.rclonelink: Copied (new)
2023/06/30 15:47:36 DEBUG : Waiting for deletions to finish
2023/06/30 15:47:36 INFO :
Transferred: 17 B / 17 B, 100%, 0 B/s, ETA -
Transferred: 2 / 2, 100%
Elapsed time: 0.0s
2023/06/30 15:47:36 DEBUG : 7 go routines active