I have a directory named https-abcd
Under that I have some directories, files and links.
One of those directories is with name logs and the logs directory has lot of files in it.
I need to tar the whole https-abcd directory excluding the logs directory only, I should get all the links, files and directories in the tar.
I am trying this command
pwd
/fs1/links/https-abcd
find . \( ! -name "logs" \) -type f -exec cp {} /destination/directory \;
But this is not working for the copy atleast. Could any one help me out please