Thicket data repository for the EEG
at main 6.4 kB view raw
1{ 2 "id": "https://mort.io/blog/back-to-the-future/", 3 "title": "Back to the Future", 4 "link": "https://mort.io/blog/back-to-the-future/", 5 "updated": "2017-12-14T00:00:00", 6 "published": "2017-12-14T00:00:00", 7 "summary": "<blockquote>\n<p>Ed: the first in a likely series, this is one of the posts I drafted but never\npublished during my seven years in the blogging wilderness</p>\n</blockquote>\n<p>I have been having persistent issues on MacOS with Time Machine backups\ninteracting badly with several configuration elements and other services. This\nis exacerbated by my use of maildirs to backup emails, with my Gmail account\nleading to a directory with some millions of files. (Yeah, ok, maybe not wise\nbut hey, we are where we are.)</p>\n<p>So in the course of trying to get backups to work reliably, I found the\nfollowing commands useful to at least some degree:</p>\n<ul>\n<li><code>mdutil -sav</code> to get info about spotlight indexing status</li>\n<li><code>sudo mdutil -Ea -i [off|on]</code> to turn off|on spotlight indexing where possible</li>\n<li><code>sudo fs_usage -w mdworker mds_stores backupd</code> obtain the current filesystem\nusage for those services</li>\n<li><code>sudo fs_usage -w -e iTerm2</code> to obtain current filesystem usage for services\n<em>excluding</em> those listed</li>\n<li><code>sudo sysctl debug.lowpri_throttle_enabled=[0|1]</code> stop|start throttling to go\nfaster|be nice!</li>\n<li>to obtain the various different hostnames that MacOS seems to want to give;\nnote that renaming <code>ComputerName</code> (also possible via\n<code>SysPrefs&gt;Sharing&gt;&gt;name</code>) caused the Time Machine directory to be renamed\nwhen the backup started</li>\n</ul>\n<pre><code><span><span>for</span><span> n <span>in</span> ComputerName LocalHostName HostName</span> <span>;</span> <span>do</span> \n</span><span> <span><span>scutil</span></span><span><span><span> --</span>get</span> <span><span>$</span><span>n</span></span></span>\n</span><span><span>done</span>\n</span></code></pre>\n<ul>\n<li><code>tmutil listbackups</code> to list backups</li>\n<li><code>tmutil listlocalsnapshotdates /</code> to list local snapshots</li>\n<li><code>tmutil destinationinfo</code> to list the Time Machine destination volumes</li>\n<li>to stream Time Machine log entries live</li>\n</ul>\n<pre><code><span><span><span>log</span></span><span> stream<span><span> --</span>style</span> syslog<span><span> --</span>debug</span><span><span> --</span>info</span> <span>\\\n</span></span></span><span><span><span><span> --</span>predicate</span> <span><span>'</span>senderImagePath contains[cd] &quot;TimeMachine&quot;<span>'</span></span></span>\n</span></code></pre>\n<ul>\n<li>to show Time Machine log entries from YYYY-MM-DD</li>\n</ul>\n<pre><code><span><span><span>log</span></span><span> show<span><span> --</span>style</span> syslog<span><span> --</span>debug</span><span><span> --</span>info</span><span><span> --</span>start</span> YYYY-MM-DD <span>\\\n</span></span></span><span><span><span><span> --</span>predicate</span> <span><span>'</span>senderImagePath contains[cd] &quot;TimeMachine&quot;<span>'</span></span><span>\\\n</span></span></span></code></pre>", 8 "content": "<blockquote>\n<p>Ed: the first in a likely series, this is one of the posts I drafted but never\npublished during my seven years in the blogging wilderness</p>\n</blockquote>\n<p>I have been having persistent issues on MacOS with Time Machine backups\ninteracting badly with several configuration elements and other services. This\nis exacerbated by my use of maildirs to backup emails, with my Gmail account\nleading to a directory with some millions of files. (Yeah, ok, maybe not wise\nbut hey, we are where we are.)</p>\n<p>So in the course of trying to get backups to work reliably, I found the\nfollowing commands useful to at least some degree:</p>\n<ul>\n<li><code>mdutil -sav</code> to get info about spotlight indexing status</li>\n<li><code>sudo mdutil -Ea -i [off|on]</code> to turn off|on spotlight indexing where possible</li>\n<li><code>sudo fs_usage -w mdworker mds_stores backupd</code> obtain the current filesystem\nusage for those services</li>\n<li><code>sudo fs_usage -w -e iTerm2</code> to obtain current filesystem usage for services\n<em>excluding</em> those listed</li>\n<li><code>sudo sysctl debug.lowpri_throttle_enabled=[0|1]</code> stop|start throttling to go\nfaster|be nice!</li>\n<li>to obtain the various different hostnames that MacOS seems to want to give;\nnote that renaming <code>ComputerName</code> (also possible via\n<code>SysPrefs&gt;Sharing&gt;&gt;name</code>) caused the Time Machine directory to be renamed\nwhen the backup started</li>\n</ul>\n<pre><code><span><span>for</span><span> n <span>in</span> ComputerName LocalHostName HostName</span> <span>;</span> <span>do</span> \n</span><span> <span><span>scutil</span></span><span><span><span> --</span>get</span> <span><span>$</span><span>n</span></span></span>\n</span><span><span>done</span>\n</span></code></pre>\n<ul>\n<li><code>tmutil listbackups</code> to list backups</li>\n<li><code>tmutil listlocalsnapshotdates /</code> to list local snapshots</li>\n<li><code>tmutil destinationinfo</code> to list the Time Machine destination volumes</li>\n<li>to stream Time Machine log entries live</li>\n</ul>\n<pre><code><span><span><span>log</span></span><span> stream<span><span> --</span>style</span> syslog<span><span> --</span>debug</span><span><span> --</span>info</span> <span>\\\n</span></span></span><span><span><span><span> --</span>predicate</span> <span><span>'</span>senderImagePath contains[cd] &quot;TimeMachine&quot;<span>'</span></span></span>\n</span></code></pre>\n<ul>\n<li>to show Time Machine log entries from YYYY-MM-DD</li>\n</ul>\n<pre><code><span><span><span>log</span></span><span> show<span><span> --</span>style</span> syslog<span><span> --</span>debug</span><span><span> --</span>info</span><span><span> --</span>start</span> YYYY-MM-DD <span>\\\n</span></span></span><span><span><span><span> --</span>predicate</span> <span><span>'</span>senderImagePath contains[cd] &quot;TimeMachine&quot;<span>'</span></span><span>\\\n</span></span></span></code></pre>", 9 "content_type": "html", 10 "author": { 11 "name": "Unknown", 12 "email": null, 13 "uri": null 14 }, 15 "categories": [], 16 "source": "https://mort.io/atom.xml" 17}