<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 26, 2016 at 7:19 AM, René J.V. <span dir="ltr">&lt;<a href="mailto:rjvbertin@gmail.com" target="_blank">rjvbertin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":op" class="a3s aXjCH">Is there a good way to exclude most of MacPorts from being backed up while retaining the possibility to reinstall without rebuilding? I&#39;m thinking of backing up selected bits from var/macports (notably the registry and software directory), probably etc/macports and libexec/macports. There&#39;s however the issue of user config files; are there designated locations to install such files?<br>
I have already excluded var/macports/{build,log}.</div></blockquote></div><br>I back up /opt/local/etc for config files; otherwise, software/ is good to keep archives.</div><div class="gmail_extra"><br></div><div class="gmail_extra">The registry&#39;s a bit of a risk, since it will be logically inconsistent if you aren&#39;t backing up the whole install. If I needed to worry about this, I&#39;d look to dump out just the registry parts relating to archives and write that to somewhere that is backed up. This could be tricky, as you might well need to munge entries relating to activated packages so they look like inactive ones. You&#39;d also want a simple record of what packages were activated at the time, so the system could be reconstituted from the inactive dump and then running port activate over the active list. (Come to think of it. this means backing up /opt/local/etc separately so config files don&#39;t possibly get overwritten. Yes, that would indicate Portfile bugs, but an emergency restore is the wrong time to discover and try to deal with those bugs.)<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>