Simplest way to copy only .log files, and then delete them?

Chris Green cl at isbd.net
Sat May 8 08:48:00 UTC 2021


I can see very complex ways to do this but I can't see a reasonably
simple way to do it.

I want to copy all *.log files from a directory hierarchy and then
delete them.  I want to preserve the hierarchy at the destination so
(if I ever need to) I can associate the log files with the place they
came from.

Is the only way to exclude all files and then include '*.log' files?

-- 
Chris Green
·




More information about the rsync mailing list