This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]