I'm looking to copy only files of a specified type from a device to a specified location, also preserving the directory structure.
My usual course of action is:
cp -r -v /mnt/customer_hd /customer_backups/date_lastname
Which works fine 99.9% of the time because people want the entire drive backed up and archived. However, in this case we're looking at a drive that has almost 100gb of data on it, and she only wants the images.
So how would I go about writing a script to parse through the device and grab only the following:
...and then copy them to my destination and preserve the structure?