If you're repository's not that big (mine are nowhere near 800MB), you could work scp 
in there to move your backups off-site.  Something like this:

========
#! /bin/sh
# CVS Backup Script

FILENAME=backup_`date +%Y%m%d_%H%M%S`.tar.gz
CVS_HOME=/home/cvs
SCP_DEST=doug@localhost:/home/doug

tar cvzf /tmp/${FILENAME} ${CVS_HOME}
md5sum /tmp/${FILENAME} > /tmp/${FILENAME}.md5
scp /tmp/${FILENAME} /tmp/${FILENAME}.md5 ${SCP_DEST}
========

If you want to do incremental backups on a large repository, there's other options as 
well.  Check out the sample chapter from the new O'Reilly book, "Linux Server Hacks" 
(http://www.oreilly.com/catalog/linuxsvrhack/chapter/ch03.pdf), and also check out a 
nifty tool called rdiff-backup.

Doug Gorley | [EMAIL PROTECTED]


----- Original Message -----
From: Tom Copeland <[EMAIL PROTECTED]>
Date: Thursday, February 6, 2003 8:38 am
Subject: RE: Backing Up CVS

> I do this using a good ol' shell script:
> 
> =============
> [build@ul020-dmz build]# cat /root/backup_cvs_repository.sh
> #!/bin/bash
> cd /root
> tar -zcf nightly_cvs_backup.tar.gz /cvs
> mv nightly_cvs_backup.tar.gz /home/tom
> chown tom:users /home/tom/nightly_cvs_backup.tar.gz
> [build@ul020-dmz build]#
> =============
> 
> And then the tar ball gets put on a tape.  This works fine for a
> medium-size repo - about 800MB of Java and whatnot - tars to about 200
> MB.
> 
> Yours,
> 
> Tom
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED]] On Behalf 
> > Of David Gagnon
> > Sent: Thursday, February 06, 2003 11:20 AM
> > To: [EMAIL PROTECTED]
> > Cc: Jean-Fran�ois Par�
> > Subject: Re: Backing Up CVS
> > 
> > 
> > Hello,
> > 
> > If I need to automate the backup (during the night for 
> > example), what I 
> > need to do? Can I use AppleScript? Do I need to use unix batch 
> file? 
> > What is the best way to do that?
> > 
> > _______________________________
> > David Gagnon
> > Dynagram Software
> > www.dynagram.com
> > 
> > > Pat Young wrote:
> > >>
> > >> When I backup my CVS respository using FTP, should I
> > >> FTP everything as "text" files?
> > >
> > > The safe answer is "no". Depending on your setup, a better 
> approach> > might be to archive the repository and then transfer 
> the 
> > archive as one
> > > file (in binary mode), to help preserve permissions and time 
> stamps 
> > > (not
> > > to mention reducing transfer times).
> > >
> > > -Matt
> > >
> > >
> > > _______________________________________________
> > > Info-cvs mailing list
> > > [EMAIL PROTECTED]
> > > http://mail.gnu.org/mailman/listinfo/info-cvs
> > >
> > >
> > 
> > 
> > 
> > 
> > _______________________________________________
> > Info-cvs mailing list
> > [EMAIL PROTECTED]
> > http://mail.gnu.org/mailman/listinfo/info-cvs
> > 
> > 
> 
> 
> 
> _______________________________________________
> Info-cvs mailing list
> [EMAIL PROTECTED]
> http://mail.gnu.org/mailman/listinfo/info-cvs
>



_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to