Re: Backup single module

2002-09-23 Thread Mike Ayers

Mahantesh wrote:
 > Hi,
 > I want to backup single module in cvs(not whole repository) and restore
 > whenever I want with version information.

I am morally obligated to inform you that this is probably not a good
idea, and may not do what you want.

 > Can you please brief me about how to do that.

If you wish to backup a single "physical" module, e.g.:

CVSROOT
   |
   +---MegaLaser
   |
   +---ShrinkRay  <--back up only this
   |
   +---MindControl

...then you can, as Larry said, just back it up.  This is valid only
if ShrinkRay is self contained, i.e. it uses no files from any other
module in the tree.

If you wish to backup a "logical" module (a module defined in the
modules file), or you wish to back up a "physical" module that is not
self contained, it is best to simply back up the entire CVSROOT and
consider it an inefficient way of backing up a single module.

 > PS: I am just resending it, as I did not get any comments on this to my
 > earlier mail.

Your timestamps, according to my American locale, show that you sent
this out at 11PM Sunday night and resent at 8AM Monday morning.  Due
to the global nature of the internet, and the propensity of us lazy
sots to not do much on weekends, it is best to wait a full day before
resending to any internet list, with weekend days counting for nothing.


/|/|ike





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



RE: Backup single module

2002-09-23 Thread Zieg, Mark

> I want to backup single module in cvs(not whole repository) and restore
> whenever I want with version information.
> Can you please brief me about how to do that.

I think tar will do basically what you want:

# backup:
$ cd /usr/local/cvsroot ; # or wherever your repository is
$ tar zcvf ~/module_2002-09-23.tgz module

# restore
$ cd /usr/local/cvsroot ; # or wherever your repository is
$ tar zxvf ~/module_2002-09-23.tgz

Note, however, that generally you shouldn't have to do this.  The point of
CVS is to allow you to rollback your code to the old version/timestamp by
using "cvs update [-r|-D]".

Using manual timestamped backups as your rollback procedure pretty much
obviates the use of CVS in the first place.  In that case, simply tell your
developers that "our CM process is tar".

But hey, you could have a great project logo...

  _)_
   .-'(/ '-.
  /`\
 /  - -  \
(`  a a  `)
 \ ^ /
  '. '---' .'
  .-`'---'`-.
 /   \
/  / '   ' \  \
  _/  /|   |\  \_
 `/|\` |+++|`/|\`
__/\   /\
   /   \  | `-._.-` |\
  | | ~-~ \   / \   / |
  | (.) | |_ |   | _| |
  | | | _|   |_ | -~- |
   \___/__(ooO___Ooo)/

  "Don't `touch` me, I'm sticky!"


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



Re: Backup single module

2002-09-23 Thread Larry Jones

Mahantesh writes:
> 
> I want to backup single module in cvs(not whole repository) and restore
> whenever I want with version information.
> Can you please brief me about how to do that.

Just do it.  All of the version information is stored in the RCS files
in the repository.

-Larry Jones

Pitiful.  Just pitiful. -- Calvin


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