Copy-Filter, how to *not* copy specific files

Hello.. o)

Not often it is, that I tinker with the copy filter, so I'd like some advice. o) I'd like to copy stuff to a diskdrive, which is not big enough to take all the data, so I'd like to skip all the huge video files I recorded. These should be mp4 or mov files, which are bigger than 1GB.

I came up with this filter, though I don't know if it works as expected, will have to see and wait if the disk runs full or not. o)
Maybe you can give me a hint on what to change or how you would have set up the filter to work as I described? Is it ok the way it is?


Thanks in advance! o)

There are lots of ways to do it, but that one seems perfectly good.

Testing filters with Find is often a good way to quickly check what they match.

You're right, a find! Quite obvious actually, many thanks for teaching me again. o)

Out of curiosity, what is one other way to setup an identical filter? I would not know how to create another filter with the same effect.
I also must admit, I discovered the "Subclause" entry just recently, which is the key to more advanced configurations, it should be bold in the dropdown list or separated at the top of it or something, as it is quite important and very different to the other choices?! o)

Thank you, DO is still copying nicely.. o)

You don't really need a Subclause if it's the only thing in the filter. (But using it won't slow things down, and it might let you express things in a more natural way, and then negate everything below it, instead of having to work out how to express the opposite of what's below it.)


You can also express each line in different ways. Matching X is the same as No-Matching the inverse of X.


Or


They all do exactly the same thing (assuming I haven't made any mistakes!).

I'd avoid the ~(*.(mp4|mov)) construction as it's so clunky compared to *.(mp4|mov) and inverting the clause itself (Match vs No-Match), but otherwise the rest is all down to taste.

Oh sweet, thanks for doing these! o)

But I wonder.. these filters seem to exclude all files greater than 1GB and any MP4/MOV file (their size does not matter?). I only wanted to exclude MP4/MOV files which are also larger than 1GB, so if there is a 2GB ZIP among the files it would be copied, as well as a 500MB MP4 file. Is it me not having understood the most basic things with filters? Please no! o)

They're using OR not AND, with the inner conditions reversed, so they do the same thing as your original filter.

!(X and Y) === (!X) or (!Y)

Yes you're right, seems I need to read and refresh some boolean algebra! o)
Thank you. o)