0

Noob alert:

Can I exclude files in the directory "imagecache" but still make the directory a part of the TAR archive?

Cudos
  • 539
  • 2
  • 7
  • 18

1 Answers1

0

Certainly, just use --exclude for that purpose.

tar czf file.tar.gz --exclude '*/imagecache/*' files-or-directories-to-add

man tar

Lekensteyn
  • 6,241
  • 6
  • 39
  • 55