LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mondo Backup Script (https://www.linuxquestions.org/questions/linux-newbie-8/mondo-backup-script-423242/)

sparton 03-09-2006 02:07 PM

Mondo Backup Script
 
Hello, I am running Suse 9.3 pro and have mondo rescue installed and working fine. I can manually back up with my HP tape drive (/dev/st0).

Now what im trying to do is find some resources and help to make a script to automatically backup everynight to /dev/st0.
Most the scipts i have found are to backup to your hard drive and or to a CD . I also want to exclude /shared from the backup.

Can anyone give me a link of some help to get me started.

Thanks!

sparton 03-09-2006 02:16 PM

wait...i found a good site myself

http://www.mondorescue.org/docs/mondoarchive.8.html


very helpful i was able to throw together my script with this site.


Quote:

#!/bin/bash
PATH=/usr/bin:$PATH
export PATH

mondoarchive -Ot -7 -d /dev/st0 -E '/mnt /shared' -T
/backup/mondo -S /backup/mondo/scratch -9 -F

tail -200 /var/log/mondo-archive.log > /tmp/mondo-archive.stripped
mail -s "Mondo Archive Report" < /tmp/mondo-archive.stripped
rm /tmp/mondo-archive.stripped


All times are GMT -5. The time now is 10:17 AM.