On Wed, 14 Feb 2001, Adrian Radu wrote:

>
>             Am am o unitate Tape SCSI si vreau sa fac backup zilnic la
> niste directoare
>
        Eu am folosesc skriptu urmator, din /etc/crontab...
---
#!/bin/bash
/bin/mt load

if test $? -eq 0
then
/bin/mt rewind
DIRS="/etc /cipri"

/bin/date > /var/log/backup.log
/bin/tar -czvf /dev/st0  $DIRS >> /var/log/backup.log
/bin/date >> /var/log/backup.log

/bin/mt offline
else
   echo No tape found
fi
---
        E simplutz... da imi fac treaba ku el...
        Pentru al' folosi sper ca ai rpmul cu mt-st instalat.

        Ciprian Iftode

        Professional Systems Romania
        Moara de Foc, nr.35, et.5, Iasi, 6600
        phone/fax: +40-32-219907


---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui