Hi, I have some backup scripts for (individually) copying data, email, home, making use of --exclude lines to ignore certain folders I don't want to copy. Generally works really well except that hidden folders specified in --exclude are ignored.
For example

--exclude /home/roger/dvd \
--exclude /home/roger/software \
--exclude "/home/roger/.mozilla/" \
--exclude "/home/roger/.mozilla-thunderbird/" \


nicely ignores anything in the software folder (a link to a partition with several gb of files) and anything on a DVD, but insists on INCLUDING .mozilla-thunderbird etc.

--exclude lines with or without quotes - no difference. --exclude=/home/roger/.mozilla - no difference.

How can I get tar to honour --exclude with hidden folders? Can anyone point me in the right direction? aside from man tar or info tar or google which I have already tried.

Cheers,
Roger




Reply via email to