[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Excluding a directory from tar



I've been trying to make a tarball of my home directory, but I want to
exclude ~/.cache. First I tried '--exclude="~/.cache", but it didn't
work. Neither did '--exclude="~/.cache/*".

I got it working by creating an empty file in ~/.cache and using the
filename as an argument to "--exclude-tag-under", but what was I doing
wrong when trying to use "--exclude"?

Petter, curious

-- 
"I'm ionized"
"Are you sure?"
"I'm positive."

Attachment: pgpJ0kLD0m1Is.pgp
Description: OpenPGP digital signature


Reply to: