Oliver Fuchs wrote:
Hi,

I want to tar the whole / tree but want to exclude the /dev directory.
In the man pages I only found how to exclude single files. Is there a chance
to exclude a whole directory using the tar command?

Oliver

This should be what you need:

tar -czf root_bak-$(date +%Y%m%d).tar.gz / --exclude=/dev/*

-Roberto

Attachment: signature.asc
Description: OpenPGP digital signature



Reply via email to