If your intention is to skip over all "directories" names "Internet" use
the command line you had.

tar -cvzf /backup/win.tar /root/peon/ --exclude-from
/root/cron/bkup_cfg/win_exclude

The contents of the exclude file should simply be:

Internet

Quotes are not used inside the file (Only the command line). You don;t
need the *'s to specify wildcards in this case. Please not that any
subdirectory called "Internet" will not be processed (no matter how
nested it is).

Mike

On Fri, 2003-11-28 at 00:18, Shawn wrote:
> Hi all.
> 
> I've taken my cue from Brian and his efforts to provide a backup over an SMB
> share.  I'm trying to backup my Windows data to my Linux server.  I've got
> the SMB parts working right but am having some troubles with TAR.
> 
> When I enter this command:
> 
> tar -cvzf /backup/win.tar /root/peon/
> 
> everything works fine.  However, there's a few large folders that I do not
> want to backup (Linux ISOs for instance).  So, I'm trying to tell tar to
> exclude those files like so:
> 
> tar -cvzf /backup/win.tar /root/peon/ --exclude-from
> /root/cron/bkup_cfg/win_exclude
> 
> and my win_exclude file contains:
> '*/Internet/*'
> 
> The problem is that the moment I include the exclude-from option, tar
> refuses to run.  I don't get any errors though.  So, suspect my usage of the
> exclude-from option is wrong (though this seems fine based on what the man
> pages tell me, and what info I could find online), or the contents of my
> win_exclude file is wrong.  I read the details at
> http://www.gnu.org/software/tar/manual/html_mono/tar.html#SEC90, and the
> section below that one, and it seems I'm trying to do things right.
> 
> Can any tar guru's shed some light on this?  In particular, I want to grab
> everything on the share point, but ignore certain folders.
> 
> Thanks.
> 
> Shawn
> 
> 
> _______________________________________________
> clug-talk mailing list
> [EMAIL PROTECTED]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
-- 
Mike Petch
CApp::Sysware Consulting Ltd.
Suite 1002,1140-15th Ave SW.
Calgary, Alberta, Canada.
T2R 1K6.
(403)804-5700.


_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to