From owner-freebsd-questions Mon Sep 13 11:28:34 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc1.sfba.home.com (ha1.rdc1.sfba.home.com [24.0.0.66]) by hub.freebsd.org (Postfix) with ESMTP id 5461714D17 for ; Mon, 13 Sep 1999 11:28:30 -0700 (PDT) (envelope-from mwakers@home.com) Received: from c67050-a.plstn1.sfba.home.com ([24.5.221.231]) by mail.rdc1.sfba.home.com (InterMail v4.01.01.00 201-229-111) with SMTP id <19990913182830.EJBQ24479.mail.rdc1.sfba.home.com@c67050-a.plstn1.sfba.home.com>; Mon, 13 Sep 1999 11:28:30 -0700 Received: by c67050-a.plstn1.sfba.home.com with Microsoft Mail id <01BEFDDB.98B61ED0@c67050-a.plstn1.sfba.home.com>; Mon, 13 Sep 1999 11:32:01 -0700 Message-ID: <01BEFDDB.98B61ED0@c67050-a.plstn1.sfba.home.com> From: "Michael W. Akers" To: "questions@FreeBSD.ORG" , 'Andriss' Subject: RE: SCSI drive mirroring question Date: Mon, 13 Sep 1999 11:31:59 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Andriss, Her is two scripts you might want to try. #!/bin/sh #copy drive1 to drive 2 /bin/cp -R /export/home1/. /export/home2 2>&1 | tee -a /var/log/backup.log The other script is usefull if you have a hard drive acting as backup and it is 2 to 4 times larger that the drive being backed up. #!/bin/sh # Backup and archive target drive # Delete previous archive /bin/rm /export/home2/backup.tar.gz 2>&1 | tee -a /var/log/backup.log # Archive last tar file /usr/local/bin/gzip /export/home2/backup.tar /export/home2/backup.tar.gz 2>&1 | tee -a /var/log/backup.log # Create current tar backup of target disk /bin/tar -cvf /export/home1/. /export/home2/backup.tar 2>&1 | tee -a /var/log/backup.log Hope this helps Michael Akers M. Akers Enterprises To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message