Hello Leland, The setup of your script is (almost) the same as mine, and I don't have any problems. The only difference is that I use POSIX paths for everything, but it shouldn't corrupt the filesystem if you don't. Does the same problem occur when you have it produce multiple little files (i.e. tgz the subdirs separately, or something similar)?
Your script seems fine - I don't see any problems with it. Greetz! Ronald > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Hovey, Leland > Sent: Wednesday, October 03, 2001 3:25 PM > To: [EMAIL PROTECTED] > Subject: a shell script corrupting the file system > > > I've been using the following shell script and each use corrupts the file > system. So, then I have to use NT's check/fix disk utility to > fix it. The > script produces a file sized ~163Mb. The C disk has 350 Mb of free space > and the D disk has 700 Mb. > > Any suggestions of what the problem is, or leads on what to look > for? Could > it be a swap space problem? > > thanks, > Leland H. > > ------------------------------------------------------------------ > ---------- > -- > ------------------------------------------------------------------ > ---------- > -- > #!/bin/sh > > # > # Backup program for 100MB zip disk. > # > > # Usage: backup.sh > > # Create file name. > dateStr="`date '+%d.%m.%Y'`.backup.tar" > > # Create tar file. > cd D:/"System Administration" > tar cf $dateStr ../Projects \ > ./backup.sh \ > C:/WINNT/Profiles/lhovey/"Local Settings"/"Application > Data"/Microsoft/Outlook/*.pst > > # Compress tar file. > gzip $dateStr > > # Obtain compressed file size. > sizeStr=`ls -gol $dateStr.gz | cut -d ' ' -f 6` > > # If zip file is greater than 90MB, split into 90MB subfiles. > #if [ $sizeStr -ge 94371840 ] > #then > # > # split -b94371840 $dateStr.gz $dateStr.gz > # rm $dateStr.gz > #fi > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
