On Sunday 01 Jun 2003 01:15, Jason Calabrese wrote:
> #! /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

Hi Jason,

I like your script, but have one reservation.  It seems ideal to 
completely restore, for example, yesterday's backup; but with such a 
big tarball it will be very difficult to restore one or two small 
files.  I do something similar on many smaller chunks of the 
filesystem.

Peter


--
[EMAIL PROTECTED] mailing list

Reply via email to