Special character in symlink, will not copy (@ character)
error is: ERROR : REDACRED FOLDER: Listing error: symlink: stat REDACRED FOLDER: no such file or directory
the folder structure is like this:
/location/to/symlink/folder@ -> /actual/location/of/file/without-the-@-symbol
how can I make this work, if possible?
What is your rclone version (output from rclone version)
1.52
Which OS you are using and how many bits (eg Windows 7, 64 bit)
freebsd 11
Which cloud storage system are you using? (eg Google Drive)
ssh/sftp
The command you were trying to run (eg rclone copy /tmp remote:tmp)
[remote]
type = sftp
host = domain.com
user = rw_user
port = 22
pass =
key_file = /root/.ssh/id_rsa
use_insecure_cipher = false
disable_hashcheck = true
(info: I have a ssh config file that has server info)
output of command with -vv
rclone ls -vv /location/to/folder/.hashes/Documents <-- This folder shows up as Documents@ when doing ls. This is also a symlink to another location
2020/08/22 14:10:54 DEBUG : rclone: Version "v1.42" starting with parameters ["rclone" "ls" "-vv" "/location/to/folder/.hashes/Documents"]
2020/08/22 14:10:54 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2020/08/22 14:10:54 ERROR : : error listing: directory not found
2020/08/22 14:10:54 Failed to ls: directory not found
Edit: I am trying to use rclone to backup data to offsite storage. I am running rclone on the NAS. The NAS is mounted by another server under /media/backup. The Documents@ links to /media/backup/Documents on the server, but the /media/backup/Documents does not exist on the NAS hence rclone will not find the /media/backup/Documents when following the link. Hope this makes sense.
rclone ls -vv /location/to/folder/.hashes/Documents
2020/08/22 21:58:04 DEBUG : rclone: Version "v1.52.3" starting with parameters ["rclone" "ls" "-vv" "/location/to/folder/.hashes/Documents"]
2020/08/22 21:58:04 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2020/08/22 21:58:04 DEBUG : fs cache: renaming cache item "/location/to/folder/.hashes/Documents" to be canonical "/long/path/to/of/location/to/folder/.hashes/Documents"
2020/08/22 21:58:04 ERROR : : error listing: directory not found
2020/08/22 21:58:04 DEBUG : 2 go routines active
2020/08/22 21:58:04 Failed to ls with 2 errors: last error was: directory not found
Basically, the NAS has folders that have symlinks to a location that does not exist on the NAS, so rclone cannot follow the link and does not copy that folder. I want it to just copy the folder with the symlink info without following the link to the actual location. I also have tried rsync and it works fine and does not throw errors, however, I would prefer to use rlone.
If you don't want to follow the symlink but want to copy it then you want the -l flag. Try listing the directory above the symlink and you'll see what it does.
I did a rclone ls FOLDER -l and did not get any errors. So this looks promising. I will try running a sync and will see what the outcome is. Thanks for that and all the help!!!
While running rsync and rclone sync, I noticed that rclone does not saturate the upload the way rsync does. With rsync (its single threaded) I will saturate my upload (12Mbit/s), but when using rclone, I only get about 8Mbit/s. I am already using --drive-chunk-size 128M, it helps but not much. Any ideas?
hi,
did you post your rclone sync command, that includes the actual source and actual dest, not just variables.
all i see is rclone sync -v $source $dest
is the source or dest using gdrive, as --drive-chunk-size 128M is a flag for gdrive