<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>opencomponentry &#187; os x</title>
	<atom:link href="http://blog.opencomponentry.com/category/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.opencomponentry.com</link>
	<description>blah blah blah, blah blah..</description>
	<lastBuildDate>Mon, 09 Nov 2009 14:49:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>script to vacuum os x sqlite databases</title>
		<link>http://blog.opencomponentry.com/2009/11/09/script-to-vacuum-os-x-sqlite-databases/</link>
		<comments>http://blog.opencomponentry.com/2009/11/09/script-to-vacuum-os-x-sqlite-databases/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 14:49:27 +0000</pubDate>
		<dc:creator>Jesse Kuhnert</dc:creator>
				<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://blog.opencomponentry.com/?p=88</guid>
		<description><![CDATA[I started noticing that there were a lot of very large sqlite database files scattered around on my os x installation and testing doing a little sqlite vacuum on them and lo and behold they didn&#8217;t appear to be getting regularly vacuumed by the OS at all.. So I created this handy little script to [...]]]></description>
			<content:encoded><![CDATA[<p>I started noticing that there were a lot of very large sqlite database files scattered around on my os x installation and testing doing a little sqlite vacuum on them and lo and behold they didn&#8217;t appear to be getting regularly vacuumed by the OS at all.. So I created this handy little script to VACUUM those files.  </p>
<p>Should be safe to run on your home dir or root &#8220;/&#8221; folder,  but running on your home directory should do wonders for you in terms of disk space and speedup of various applications.  The name patterns of which files are sqlite databases is a constant on-going tweek so can&#8217;t say for sure this catches all of them.  You&#8217;ll see a few &#8220;not a database or encrypted&#8221; errors coming from sqlite which so far seem be safe to ignore from what I can tell.</p>
<p><code>#!/bin/sh<br />
find . -type f \( -name \*.db -o -name \*.sqlite -o -name \*.sqlite3 -o -name \*.syncdb \<br />
-o -name \*.changedb -o -name \*.synciddb -o -name \*AvailableFeeds\* -o -name \*DefaultCounts\* -o -name \*Envelope\* \) -exec sqlite3 {} VACUUM \;<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.opencomponentry.com/2009/11/09/script-to-vacuum-os-x-sqlite-databases/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
