This seems to be such an obvious mode that I cannot help but think I'm missing something, but I cannot find discussions about this, let alone the desired flags.
What is the problem you are having with rclone?
What I want to do, is to call rclone move
safely, i.e. for it to just fail on any questionable situation, like file/directory of the same name already existing on destination.
Run the command 'rclone version' and share the full output of the command.
rclone v1.53.3-DEV
- os/arch: linux/amd64
- go version: go1.18.1
I know this isn't the latest (it's the latest on Ubuntu 22.04.4 LTS though), but I was reading the docs for the latest version and still wasn't able to find a desired option.
Which cloud storage system are you using?
None, it's SFTP to my own NAS.
The command you were trying to run
I've tried several, what I actually expected to behave as described was
rclone move /src nas:dest/ \
--progress \
--delete-empty-src-dirs --ignore-existing
It doesn't overwrite files, but it does remove them from the source, even if they are actually different from dest (but have the same name).
In the end I settled on
rclone move /src nas:dest/ \
--progress \
--delete-empty-src-dirs --immutable --check-first --checksum
which seems perfect for my use-case (I just want to move stuff from my laptop to a NAS, and I don't care if it's already there, I'm only afraid to lose anything because it has the same filename but is actually a different file). But it still would be desirable to be able to tell rclone to be as cautious as possible: to not merge directories, or merge them but not move (e.g. delete from source) files that are already at destination.