I have a mission critical gentoo system that although it need not always be powered up, must always be available for use. (Well, okay it's a MythTV box.)
But I do want to upgrade it and experiment from time to time, so I've given it two root partitions, written a little script to automatically mirror the master OS onto the spare partition (and tweak fstab etc.) and made it dual boot so that when there's nothing on I can boot into the mirror; emerge --sync and update world and test it on and off for a fortnight or so until I'm sure it's stable.
At this point I'm happy with the mirror and I want to update the master, but obviously doing an emerge --sync on the master may pull in untested changes since the mirror was synced.
I can easily sync the /usr/portage directory from the mirror to the master system, but I suspect that won't be enough. I need to separately invoke whetver it is that says "updating portage cache" at the end of an emerge --sync; and maybe some other stuff as well. How do I go about this?
Alternatively, is there a way to make the "emerge --sync" command sync from a local directory (/mirror/usr/portage) rather than an rsync server on the web?



