tar question

Ryan Golhar golharam at umdnj.edu
Thu Oct 6 17:13:07 UTC 2005


I'm trying to tar up a directory (/home/tempuser) that contains a bunch
of subdirectories.  One of the subdirectories (/home/tempuser/work), I
would like to omit from being tar'd.  I'm using the command:

tar cvf backup.tar --exclude="/home/tempuser/work" 

However  that directory is still being tar'd up.  I suspect I'm not
using the parameter correctly.  If there a way I can exclude that
directory plus any subdirectories or files underneathe it?

Ryan




More information about the redhat-list mailing list