Hi Mike

Try something like this:

tar -cvf backup.tar $(ls / | grep -v -e 'tmp' -e 'boot')

On Tue, May 31, 2011 at 6:42 PM, Michael Sioutis <[email protected]> wrote:
> Hello!
>
> I can't find it in the man page, and it seems it is not supported (?)
> I am trying to backup some folders and want to exclude some and nth
> will work. I've tried:
> --exclude=/folder/
> --exclude="/folder/
> --exclude /folder
> --exclude "folder"
>
> I will get an error: "--exclude... directory doesn't exist".
>
> Excluding will work in Linux.
>
> Thanx!
> Mike
>
>



-- 
Aaron Mason - Programmer, open source addict
I've taken my software vows - for beta or for worse

Reply via email to