Re: Scripting Question - tar

2008-07-11 Thread T o n g
On Thu, 10 Jul 2008 17:04:38 -0500, Kent West wrote: tar -cvzf - --one-file-system /home | split -b 2000m - Side note since the problem has been solved. You might want to look into dar, which will do splitting for you automatically, as well as many other desired features for backup

Scripting Question - tar

2008-07-10 Thread Kent West
I have this script (stripped down to basics): #!/bin/bash sourceDir='/home/'# Directory you're backing up targetDir='/TERASTATIONBACKUP/GOSHEN/'$(date +%Y)# Destination directory for the tarball targFileBase='GoshensHome'# Desired base part of the tarball's

Re: Scripting Question - tar

2008-07-10 Thread Owen Townend
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

Re: Scripting Question - tar

2008-07-10 Thread Kent West
Owen Townend wrote: Kent West wrote: Am I just not seeing a typo somewhere? Why is my script failing? Hey, You're missing the '-' for stdin tar -czvf - --one-file-system $sourceDir | split -b 2000m - $targetFile Ah, thank you! -- Kent West ))) Westing