Date: Mon, 13 Sep 1999 11:31:59 -0700 From: "Michael W. Akers" <mwakers@home.com> To: "questions@FreeBSD.ORG" <questions@FreeBSD.ORG>, 'Andriss' <andriss@andriss.com> Subject: RE: SCSI drive mirroring question Message-ID: <01BEFDDB.98B61ED0@c67050-a.plstn1.sfba.home.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01BEFDDB.98B61ED0>