Skip to content

Instantly share code, notes, and snippets.

@Rmano
Created April 13, 2021 07:38
Show Gist options
  • Save Rmano/8f4137e89406719d958a4e7daebe81a9 to your computer and use it in GitHub Desktop.
Save Rmano/8f4137e89406719d958a4e7daebe81a9 to your computer and use it in GitHub Desktop.

What is the problem you are having with rclone?

I am using rclone to backup my Linux directory on my employer's OneDrive cloud disk --- and it works perfectly and efficiently. Kudos to everyone involved.

The problem is that I have, on my source disk, a project cloned by GitHub; can't post a link, search for screenkey. In that dir there is a file named screenkey and a directory named ScreenKey. Ok: bad idea, I know.

What happens is that clearly, the copy fails because the target fs is non-case-sensitive with the error reported below.

So, my question: is there some way of solving the clash short of excluding the guilty directory from the backup?

What is your rclone version

rclone v1.53.3

Which OS you are using and how many bits

Ubuntu Linux 20.04, 64 bits

Which cloud storage system are you using?

OneDrive

The command you were trying to run

rclone sync --exclude-from="$HOME/rclonedir/filtering.txt"\
        --fast-list --skip-links\
        -P --log-file=software-rclone.log --log-level=INFO\
        "$HOME/software"  target:Backups/Live/software/

The rclone config contents with secrets removed.

[target]
type = onedrive
token = {"access_token":}
drive_id = b!LtHke
drive_type = business

A log from the command with the -vv flag

Clearly, the error is for every file in the "misnamed" directory.

2021/04/11 21:02:14 ERROR : gnome-utils/screenkey/Screenkey/__init__.py: Failed to copy: found file when looking for folder
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment