Similarly to Copy specific file type keeping the folder structure I am looking to copy over only specific file types (or files with names containing specific strings) preserving the folder structure. I only want to add the caveat that the folders in question are located on a different server which I connect to through ssh. Normally that means I use scp
or rsync
on the local system. However, here we want to be able to run find
on the remote system. How would I copy the files and directories in this case?
P.S. Would there be a way to estimate the total file size before performing the copy for real.
find
is somehow used but perhaps not for a different solution. – Kvothe Mar 09 '21 at 22:41rsync
? It can do everything you've asked – Chris Davies Mar 09 '21 at 23:12