i can recursivly 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), which content was changed within the last 24 houres.
What do I have to add to my line above?
Edit: I want to have the same results as my find-line above, but I want only that entries in my result, in which folders a folder or a file has been changed within the last 24hours (or something else).
The line
find . -name test ! -path "./my_dest/*" ! -ctime +0 -exec cp -r --parents {} /path/to/my_dest \;
does not do that! This line would find© only the folderchanged test-folders but not the filechanged test-folders.