Notice Can't follow symlink without -L/--copy-links

#1

Hi guys.

Im trying do make a backup from my QNAP nas to my gdrive , and im getting this type of notice from the logs:

2019/05/13 19:20:42 NOTICE: One Drive/Film/icmeler/.@__thumb/adefaultGOPR0024.MP4: Can't follow symlink without -L/--copy-links

What does it mean and how do I fix it? It seems that it uploading and the size of the folder match the progress bar.

Thanks :slight_smile:

#2

It means you have some symbolic links as those are pointers to a file somewhere else on a different file system.

If you want to copy those, you need to use --copy-links as rclone doesn't follow them by default.

#3

Should I just add the flag --copy-links and its running ?

And thx by the way :slight_smile:

#4

Yep. It looks like this:

[felix@gemini tt]$ ln -s hosts test
[felix@gemini tt]$ ls -al
total 8
drwxr-xr-x  2 felix felix   31 May 13 13:38 .
drwx------ 20 felix felix 4096 May 13 11:14 ..
-rw-r--r--  1 felix felix  203 May 13 13:38 hosts
lrwxrwxrwx  1 felix felix    5 May 13 13:38 test -> hosts
[felix@gemini tt]$

That test isn't a real file, but a 'link' to the actual hosts file that I made. Those links can point to anywhere/anything. If the source file goes away, you get a broken link to it.

[felix@gemini tt]$ rm hosts
[felix@gemini tt]$ cat test
cat: test: No such file or directory
[felix@gemini tt]$ ls -al
total 4
drwxr-xr-x  2 felix felix   18 May 13 13:39 .
drwx------ 20 felix felix 4096 May 13 11:14 ..
lrwxrwxrwx  1 felix felix    5 May 13 13:38 test -> hosts

They are like Shortcuts in Windows if that helps.

#5

Thanks :slight_smile:

Gonna try it out.

Cheers