cleaning up
Bradley Giesbrecht
brad at pixilla.com
Mon Jan 11 17:15:39 PST 2010
On Jan 11, 2010, at 4:30 PM, Jeremy Lavergne wrote:
>> Restoring from a backup is a terrible solution. I make nightly
>> backups of my databases but loosing a days worth of data will make
>> me very unpopular.
>> Likewise losing all the emails in an imap mailbox would make me
>> equally unpopular. I think for me it's best to just move user data
>> outside /opt/local. I already moved it all to a subdir of /opt/
>> local/var I should have just moved it outside /opt/local altogether
>> and I wouldn't be worried about find $prefix -exec rm commands.
>
> If it's all in $prefix/var, just run a find command for bin, etc,
> include, lib, and share.
Good idea.
I couldn't manage to get find -path '/opt/local/var' -prune to work
but ! seems to work.
sudo find /opt/local \( ! -path "/opt/local/var/*" -a ! -path "/opt/
local/apache2/*" -a ! -path "/opt/local/www/*" \) -name *.mp_*
I think these are two other directories that some of the ports may
park user files like some of the web frameworks that allow user uploads.
// brad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20100111/86a54b2e/attachment.html>
More information about the macports-dev
mailing list