[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Scripting Question - tar



> > tar -cvzf - --one-file-system /home | split -b 2000m -
> /TERASTATIONBACKUP/GOSHEN/2008/2008-Jul-10.tgz
vs
> > tar -czvf - --one-file-system $sourceDir | split -b 2000m $targetFile

>  Am I just not seeing a typo somewhere? Why is my script failing?
>
>  Thanks!

Hey,
 You're missing the '-' for stdin

tar -czvf - --one-file-system $sourceDir | split -b 2000m - $targetFile

:)

cheers,
Owen.


Reply to: