Exclude issues.

Dubh Aingeal ubuntu at dubh-aingeal.com
Wed Feb 6 08:40:41 UTC 2008


Ok the script runs great now except for one minor issue. My exclude does 
not seem to work. The tar line looks like:

$TAR $NEWER -cf $BACKUPDIR/$COMPUTER-$DM.tar --exclude=$BACKUPDIR 
$DIRECTORIES

I have tried the --exclude as:

--exclude $BACKUPDIR $DIRECTORIES
$DIRECTORIES --exclude $BACKUPDIR
--exclude=$BACKUPDIR $DIRECTORIES
$DIRECTORIES --exclude=$BACKUPDIR



Yes I know it would be better to use a directory not in the path, but 
the users who will be using it don't have access to directories outside 
their home directory. So getting this exclude right is kinda a script 
breaker. Cause in about a week it will pretty much fill everyones home 
directories.





More information about the ubuntu-users mailing list