[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RE: Backing Up CVS
From: |
douggorley |
Subject: |
Re: RE: Backing Up CVS |
Date: |
Thu, 06 Feb 2003 08:50:45 -0800 |
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
address@hidden:/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 | address@hidden
----- Original Message -----
From: Tom Copeland <address@hidden>
Date: Thursday, February 6, 2003 8:38 am
Subject: RE: Backing Up CVS
> I do this using a good ol' shell script:
>
> =============
> address@hidden 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
> address@hidden 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: address@hidden
> > [mailto:address@hidden On Behalf
> > Of David Gagnon
> > Sent: Thursday, February 06, 2003 11:20 AM
> > To: address@hidden
> > 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
> > > address@hidden
> > > http://mail.gnu.org/mailman/listinfo/info-cvs
> > >
> > >
> >
> >
> >
> >
> > _______________________________________________
> > Info-cvs mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/info-cvs
> >
> >
>
>
>
> _______________________________________________
> Info-cvs mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/info-cvs
>