Question - "rclone move" used with "–ignore-existing" behavior?

What is the exact behavior when running rclone move with --ignore-existing flag?

Will it check if the files are already present on the destination and if yes skip the upload of those and delete them on the source ?

Yes

Only if you are using rclone move.

Though if you are using rclone move then it will check src == dst and not transfer so I wouldn't use --ignore-existing there.

1 Like

So what do you suggest, first run rclone copy with ignore existing flag and then delete them on the source manually ?

Unrelated question: I seem to have a undeleable folder in my mounted gdrive when I try to delete it I get this error:
rm: cannot remove ‘FolderName’: Input/output error
Is there anyother way I can try to delete it ?

You can do it with rclone move if that is what you really want to do.

Check rclone's log - it will tell you what the error is - can you post that?

It shows this:

2019/10/17 15:44:11 ERROR : FolderName/: Dir.Remove failed to remove directory: directory not empty
2019/10/17 15:56:22 ERROR : FolderName/: Dir.Remove failed to remove directory: directory not empty

But the directory is completly empty when I check it with: ls

Can you post the output of ls -al?

[felix@gemini test]$ ls -al
total 10920
drwxrwxr-x   3 felix felix       78 Sep 30 16:50 .
drwx------. 15 felix felix     4096 Oct 17 10:39 ..
drwxr-xr-x   2 felix felix       92 Sep 29 13:41 rclone-v1.49.4-linux-amd64
-rw-rw-r--   1 felix felix 11174779 Sep 29 13:41 rclone-v1.49.4-linux-amd64.zip

When I do the command in the non deleteable folder it only shows this:

ls -al
total 0

It is possible the folder has some trashed files in. Confusingly trashed files are held in the directory that they were deleted from.

Try emptying the trash (rclone cleanup) and see if that helps.

Tried that still same error as before :confused:

You don't even see:

[felix@gemini T]$ ls -al
total 4
drwxrwxr-x   2 felix felix    6 Oct 17 13:13 .
drwx------. 16 felix felix 4096 Oct 17 13:13 ..
[felix@gemini T]$

The . and ..?

Did you try to just remount it and see if it goes away?

Did you have lots of stuff in your trash? - it sometimes takes a while to disappear.

No trash was not really full.

Also I tried to restart my server and tried to remount it. Still same weird issue :confused:

Is it a cache backend?
What version of rclone?

What's the log say when you look?

Same exact setup as you got (using your scripts)

rclone 1.46

What do you mean with that ? Logs look completly fine except when I try to delete the folder it just shows:
ERROR : FolderName/: Dir.Remove failed to remove directory: directory not empty

Run the mount in debug and recreate the issue and share that log.

You can also run rclone ls at the path and see what the output looks like with "-vv" on it.

This is the output of rclone ls with -vv flag:

[~] # rclone ls gcrypt2:Stuff/FolderName --vv
2019/10/18 04:59:38 DEBUG : rclone: Version "v1.46" starting with parameters ["rclone" "ls" "gcrypt2:Stuff/FolderName" "-vv"]
2019/10/18 04:59:41 DEBUG : crolj6kbt6rfhaadcroa8htee2m8k034oph0: Skipping undecryptable dir name: bad decryption - utf-8 invalid
2019/10/18 04:59:41 DEBUG : 4cm5cgsigh3qps: Skipping undecryptable dir name: bad decryption - utf-8 invalid
2019/10/18 04:59:41 DEBUG : 4 go routines active

That's a pretty old version you have going on. I'd upgrade that.

What if you list out that directory on the non encrypted remote?

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