Rclone local disks on Linux - Copy symlinks as symlinks?

Is there an option I am missing to allow rclone to copy, and preserve, symlinks as actual symlinks?

What is the problem you are having with rclone?

I want to copy symlinks as symlinks, not copying the destination file or creating a text file with the path.

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

rclone v1.61.1

  • os/version: centos 7.7.1908 (64 bit)
  • os/kernel: 3.10.0-1062.el7.x86_64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.19.4
  • go/linking: static
  • go/tags: none

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


The flag -l should work:

$ tree -l
└── a
    ├── file
    └── link -> file

1 directory, 2 files
$ rclone copy -l a b
$ tree -l
├── a
│   ├── file
│   └── link -> file
└── b
    ├── file
    └── link -> file

2 directories, 4 files

Oh! Did I miss a man page somewhere that explains that? I was reading here, and the -l flag says it stores it as a text file: Local Filesystem

If that works that'll be great. I'll give it a try soon.

The local backend does a bi-directional conversion so reading a symlink reads it as a .rclonelink file, but if you write a .rclonelink file it writes it as a symlink.

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