delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/03/09:24:57

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Hovey, Leland" <Leland DOT Hovey AT sterling-fsg DOT com>
To: cygwin AT cygwin DOT com
Subject: a shell script corrupting the file system
Date: Wed, 3 Oct 2001 09:24:53 -0400
Message-ID: <NFBBLEGGLDPHOMNAPLMGKEIECBAA.leland.hovey@sterling-fsg.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019