On Jun 24, 2009, at 6:11 PM, Christian Kelly wrote:
On 24/06/2009 23:57, Shawn Walker wrote:
On Jun 24, 2009, at 5:50 PM, Christian Kelly wrote:
I suggest the following. Periodically, say, every 24 hours, we:
- create a new empty repo
- for each package we want to *keep* we pkgsend | pkgrecv it to
the new repo
- rebuild the catalog
- swap out the repos
Actually, this sequence should work and is much simpler (and will
handle the catalog, search indices, etc.):
* pkgrecv -s src_repo -d file:///path/to/dest_repo
fmris_you_want_to_keep
(note that dest_repo doesn't even have to exist yet, it will
automatically be created if needed)
* copy the cfg_cache from the old repo to the new repo
* stop the depot server for the old repository
* remove the old repository directory
* move the new repository directory into place
* start the depot server
Awesome, I'll give this a go.
By the way, you'll want to use the version in gate tip for the best
results.
I recently putback some minor fixes related to pkgrecv.
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss