rsync --remove-source-files but only those that match a pattern
- by user28146
Is this possible with rsync?
Transfer everything from src:path/to/dir to dest:/path/to/other/dir and delete some of the source files in src:path/to/dir that match a pattern (or size limit) but keep all other files. I couldn't find a way to limit --remove-source-files with a regexp or size limit.
Update1 (clarification): I'd like all files in…