This is what I use.  I have a cron setup to run this script every night.  I've 
had it running for several months and it already saved me once.

Let me know if you have ant questions or suggestions.

Jason

#! /bin/bash
#######################
# Backup Script
#######################

mount /boot -o ro
mount /mnt/backup

FILE=/mnt/backup/`date +"%Y-%m-%d"`.tar
FILE_LIST=/mnt/backup/`date +"%Y-%m-%d"`.list
OLD_FILE=/mnt/backup/`date --date='3 days ago' +"%Y-%m-%d"`.tar
OLD_FILE_LIST=/mnt/backup/`date --date='3 days ago' +"%Y-%m-%d"`.list
EXCLUDE='--exclude /proc --exclude /mnt --exclude /usr/portage/distfiles'

tar -cpvvf $FILE / $EXCLUDE > $FILE_LIST

rm -f $OLD_FILE
rm -f $OLD_FILE_LIST

umount /boot
umount /mnt/backup

hdparm -y /dev/hdb

On Saturday 31 May 2003 03:24 pm, Ryan wrote:
> I've got a small network (4 computers) here at my home (3 run linux, 1
> runs win98) that I want to start doing backups on to a second hard disk in
> one of the computers (I hope to burn these backups onto a cd-r disk every
> week or so). What tools will do this? What would you recommend? How do you
> do your backups?
>
> I've heard about AMANDA, and while I haven't looked into it that much yet,
> it sounds like overkill for my needs. I'd sure appreciate seeing your
> custom backup scripts or any links you might have to get me on my way.
>
> Ryan
>
>
>
>
> --
> [EMAIL PROTECTED] mailing list


--
[EMAIL PROTECTED] mailing list

Reply via email to