LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-18-2007, 08:45 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,900

Rep: Reputation: 73
Backing Up CVS Server


Guys - I just was handed a CVS server running RHEL4 AS. This box pretty much just runs CVS and Apache on my LAN and I was wondering if anyone had any experience backing up CVS directories and what specific sections I should prune? I would prefer just to tarball the suggested directories from the CVS box and then RSYNC or something along that nature to SAN or my Linux desktop for that nature. Space is not an issue, I will engineer this more once I really understand what directories can be pruned and backup as I don't really want to back up the OS files, just the CVS data if that makes sense.

Thanks for anyone who has any experience with using CVS and backup.

**PS**

I have install BackupExec on this machine and that seems to be running fine however I never rely on one backup solution. I like to have more than one option(s).
 
Old 07-18-2007, 03:09 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
I think if all you want to do is backup the cvs data, it should be enough to simply tar up the contents of whatever the $CVSROOT variable points to (ie: the top level of the repository).
 
Old 07-18-2007, 05:43 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,900

Original Poster
Rep: Reputation: 73
So basically

Code:
$tar cvzf cvs_backup.tar.gz /path/to/cvsroot
Is that pretty much it or will that command tar everything from the "/" path to the cvsroot dir?
 
Old 07-18-2007, 09:21 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
That will do the trick.

I just tried on my system and a literal:
Code:
$ tar cvzf cvs_backup.tar.gz $CVSROOT
works fine. You can try:
Code:
tar cvzf cvs_backup_`date +%d-%m-%y`.tar.gz $CVSROOT
if you want the date appended. Don't forget to use 'p' if you ever need to restore it.

Again, bear in mind this is only the latest checked-in data, it doesn't account for .cvsrc, .cvsignore files etc, and any code in a local tree which has not been committed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running CVS Server on Fedora Core 4 with pserver as "cvs" user rupak Fedora 2 09-17-2005 02:06 PM
Running CVS Server with pserver as "cvs" user on Fedora Core 4 rupak Linux - Software 2 09-17-2005 12:10 PM
Backing Up Server stlyz3 Linux - Software 4 06-04-2005 10:44 PM
Backing Up Server stlyz3 Linux - Enterprise 1 06-04-2005 04:46 PM
Backing up a Slackware server technician Slackware 3 03-09-2005 01:50 PM


All times are GMT -5. The time now is 09:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration