Keep larger file when source and dest have two files with the same name

I remember there being a command with different flags to choose how to resolve conflicts when the source and destination both have files with the same name, and one of them used file size. Can anyone help me figure out the command in question, or another way to resolve my problem?

So your goal is to copy from source to destination and the only basis is the larger file is always kept?

Yes, that's right

Unless something has been added, I'm not aware of a way to do just that with a flag.

Here is a post that someone walked through with the same question:

Not sure what OS you are on as that may help with some scripting options as well.

So --size-only skips the smaller file?
I am on Windows

No, it doesn't. It only check size and if sizes are different, it copies if they are different.

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