daily backup

Furmanek, Greg plug-discuss@lists.PLUG.phoenix.az.us
Tue, 28 Aug 2001 14:07:54 -0400


1. 
#!/bin/sh
cd /samba; find . -depth -print | /bin/cpio -oa --block-size=512 \
--format=newc --verbose -O /dev/st0 2> /etc/backup/DailyTapeLog

When you redirect stderr you do 2>&1 but this time
you want to redirect to a file therefore:
2> /path/filename

> -----Original Message-----
> From: Craig White [mailto:craigwhite@azapple.com]
> Sent: Monday, August 27, 2001 11:54 PM
> To: plug-discuss@lists.PLUG.phoenix.az.us
> Subject: daily backup
> 
> 
> trying to get a basic shell script down...
> 
> #!/bin/sh
> cd /samba; find . -depth -print | /bin/cpio -oa --block-size=512 \
> --format=newc --verbose -O /dev/st0 > /etc/backup/DailyTapeLog
> 
> question 1 - how do I direct the 2&>1 output to this file
> /etc/backup/DailyTapeLog?
> 
> question 2 - is there some better scripts / ideas for a SCSI Tape
> backup? I eventually want to have a series of scripts that I 
> can set up
> in cron.
> 
> installed amanda - looks good - a bit of a bother - no webmin module -
> webmin module is good for customer. This is from a cpio module for
> webmin which is rather basic but it gets it done and allows someone to
> point & click restore (file pattenrn matching) if necessary. I did a
> backup and restore to make sure that it works and it actually works.
> 
> Craig
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your 
> mail doesn't post to the list quickly and you use Netscape to 
> write mail.
> 
> PLUG-discuss mailing list  -  PLUG-discuss@lists.PLUG.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 


"The sender believes that this E-mail and any attachments were free of any
virus, worm, Trojan horse, and/or malicious code when sent.  This message
and its attachments could have been infected during transmission.  By
reading the message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action about viruses and
other defects.  The sender's employer is not liable for any loss or damage
arising in any way from this message or its attachments."