This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
a shell script corrupting the file system
- To: cygwin at cygwin dot com
- Subject: a shell script corrupting the file system
- From: "Hovey, Leland" <Leland dot Hovey at sterling-fsg dot com>
- Date: Wed, 3 Oct 2001 09:24:53 -0400
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/