I'm working on doing a pretty straightforward tar for a site, but there's a wrinkle. Here's the file structure of the site: ... files/ images/ images/visitors/ ... logs/ ... ...
Simplified directory structure: /root/test /root/test/dir1 /root/test/dir2 /root/test/dir3 /root/test/dir4 I want to tar /root/test so that when I extract the archive I get dir1 and dir2. I want to ...
Noob alert: Can I exclude files in the directory "imagecache" but still make the directory a part of the TAR archive?
T would like to use the tar command in Linux to back up some files, but i would like to exclude a specific directory from the archive. How can I do that?