Comment on How to exclude files on copy (cp) on GNU / Linux / Linux copy and exclude files and directories (cp -r) exclusion by Morten Pedersen.
Why not just use the cp command and exclude the “logs” subdirectory like this:
cp -rpf /usr/local/nginx/!(logs) /usr/local/nginx-bak
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Hey long time now see, thanks for dropping back again! 🙂
Previoust Post:
Next Post:
This entry was posted
on Friday, March 29th, 2024 at 11:07 am and is filed under Uncategorized.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.