I can recursively find and copy all my test-directories (with content) of the current directory:

find . -name test ! -path "./my_dest/*" -exec cp -r --parents {} /path/to/my_dest  \;

But now I want to copy only that test-directories (with content), when content was changed within the last 24 hours.

What do I have to add to my line above?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.