Good point Bill. I do have ADSL and can d'load at roughly 165k/sec 
Distfiles, though becomes so large that it would soon overwhelm my 20 
gig drive that I back up to. Perhaps it would be smart to copy some 
files from distfiles to ~/home where they would be backed up and I 
could later move them back to distfiles if needed. This would however 
require more scripting to keep only the latest version of specific 
packages. Frankly, I'm not up to that task yet but I am learning :o)

Ernie

On Sunday 02 November 2003 11:32 pm, Bill Kenworthy wrote:
> One thing I noticed about your excludes:
>
> I use a modem so distfiles is very important when doing a
> (re)build.  As a backup script you should include all the files
> needed to get up and running.
>
> Unless you are one of the lucky few with nearly unlimited net
> access, and no traffic limits or have made other arrangements.
>
> BillK
>
> On Mon, 2003-11-03 at 12:58, Ernie Schroder wrote:
> > On Sunday 02 November 2003 08:05 pm, Rick [Kitty5] wrote:
> > > What do people do / recommend for backing up?
> >
> > I do rsync backups as well but to a normally unmounted spun down
> > drive on a second box. The script below runs at 12:01 AM daily.
> > My script is still a bit crude but it evolves as I learn and get
> > around to working on it
> >
> > #================================================================
> >====== #! /bin/bash
> > # /usr/local/bin/my-rsync
> > #######################
> > # Backup Script
> > #######################
> >
> > [EMAIL PROTECTED]:/mnt/backup
> > EXCLUDE=/usr/local/bin/rsync-exclude
> > #MAILTO="/bin/mail root"
> > echo "   Mounting boot partition..."
> > sudo mount /boot -o ro
> > echo
> > echo "   Mounting backup disk..."
> > ssh -T [EMAIL PROTECTED] <<END
> > sleep 5
> > mount /dev/hdb1 /mnt/backup
> > END
> >
> > sleep 4
> > echo
> > echo "   Performing backup..."
> > echo
> > rsync --rsh="ssh" --delete -av --exclude-from=$EXCLUDE / \
> >         $BACKUP_TO/rsync/ | mail -s "backup daily output" root
> >
> > echo
> > echo "   Backup complete Unmounting boot and backup
> > partitions..."
> >
> > /bin/umount -l /boot
> > ssh -T [EMAIL PROTECTED] <<END
> > sleep 5
> > umount /mnt/backup
> >
> > echo
> > echo "   Spinning down backup disk..."
> > /sbin/hdparm -y /dev/hdb                # spin down disk
> > END
> > #================================================================
> >======
> >
> >
> > /usr/local/bin/rsync-exclude is a simple text file containing
> > files and directories that I don't want to include in the backup.
> > There are many additions I should make to this file, but I
> > haven't spent much time refining it lately. The backup is
> > currently just over 6 Gigs and it normally runs for about 10 to
> > 15 minutes. The first run was several hours. The nightly run
> > deletes any files I deleted that day and then writes any new or
> > altered files not specificly excluded,
> >
> > # /usr/local/bin/rsync-exclude:
> > - /tmp/
> > - /var/lib/init.d/
> > - /mnt/flash                           #in case I forget to umount removable
> > storage - /mnt/smartcard                       #media, cd's etc.
> > - /mnt/tmp
> > - /mnt/cdrom/
> > - /mnt/floppy/
> > - /proc/
> > - /usr/portage/distfiles/
> > - /root/.ccache/
> > - /home/ernie/Shared_Music    #mp3's that can be seen by p2p
> > client - home/ernie/.kde3.1/share/apps/RecentDocuments/
> > - /home/ernie/tmp                      #Partially d'loaded mp3's
> > - /home/ernie/mnt                      #Samba mounts
> > - /var/tmp/portage
>
> --
> [EMAIL PROTECTED] mailing list

-- 
Regards, Ernie
100% Microsoft and Intel free


--
[EMAIL PROTECTED] mailing list

Reply via email to