Skip to content

Commit

Permalink
Site updated: 2024-11-24 17:20:41
Browse files Browse the repository at this point in the history
  • Loading branch information
hydai committed Nov 24, 2024
1 parent a55cc66 commit 77699d7
Show file tree
Hide file tree
Showing 25 changed files with 924 additions and 57 deletions.
4 changes: 2 additions & 2 deletions 2016/05/22/helloworld/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">4</span>
<span class="site-state-item-count">5</span>
<span class="site-state-item-name">文章</span>
</a>
</div>
Expand All @@ -139,7 +139,7 @@
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">6</span>
<span class="site-state-item-count">8</span>
<span class="site-state-item-name">標籤</span></a>
</div>
</nav>
Expand Down
4 changes: 2 additions & 2 deletions 2016/08/03/pullrequestnote/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">4</span>
<span class="site-state-item-count">5</span>
<span class="site-state-item-name">文章</span>
</a>
</div>
Expand All @@ -142,7 +142,7 @@
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">6</span>
<span class="site-state-item-count">8</span>
<span class="site-state-item-name">標籤</span></a>
</div>
</nav>
Expand Down
4 changes: 2 additions & 2 deletions 2016/10/01/xcurn-error-after-upgrade-10-12/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">4</span>
<span class="site-state-item-count">5</span>
<span class="site-state-item-name">文章</span>
</a>
</div>
Expand All @@ -140,7 +140,7 @@
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">6</span>
<span class="site-state-item-count">8</span>
<span class="site-state-item-name">標籤</span></a>
</div>
</nav>
Expand Down
7 changes: 5 additions & 2 deletions 2024/11/19/url-shortener/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">4</span>
<span class="site-state-item-count">5</span>
<span class="site-state-item-name">文章</span>
</a>
</div>
Expand All @@ -140,7 +140,7 @@
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">6</span>
<span class="site-state-item-count">8</span>
<span class="site-state-item-name">標籤</span></a>
</div>
</nav>
Expand Down Expand Up @@ -352,6 +352,9 @@ <h2 id="結語"><a href="#結語" class="headerlink" title="結語"></a>結語</
</a>
</div>
<div class="post-nav-item">
<a href="/2024/11/24/time-machine-speed-up/" rel="next" title="加速 macOS 的 Time Machine 備份速度">
加速 macOS 的 Time Machine 備份速度 <i class="fa fa-angle-right"></i>
</a>
</div>
</div>
</footer>
Expand Down
388 changes: 388 additions & 0 deletions 2024/11/24/time-machine-speed-up/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions archives/2016/05/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">4</span>
<span class="site-state-item-count">5</span>
<span class="site-state-item-name">文章</span>
</a>
</div>
Expand All @@ -134,7 +134,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">6</span>
<span class="site-state-item-count">8</span>
<span class="site-state-item-name">標籤</span></a>
</div>
</nav>
Expand Down Expand Up @@ -182,7 +182,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
<div class="post-block">
<div class="post-content">
<div class="collection-title">
<span class="collection-header">嗯..! 目前共有 4 篇文章。 繼續努力。</span>
<span class="collection-header">嗯..! 目前共有 5 篇文章。 繼續努力。</span>
</div>


Expand Down
6 changes: 3 additions & 3 deletions archives/2016/08/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">4</span>
<span class="site-state-item-count">5</span>
<span class="site-state-item-name">文章</span>
</a>
</div>
Expand All @@ -134,7 +134,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">6</span>
<span class="site-state-item-count">8</span>
<span class="site-state-item-name">標籤</span></a>
</div>
</nav>
Expand Down Expand Up @@ -182,7 +182,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
<div class="post-block">
<div class="post-content">
<div class="collection-title">
<span class="collection-header">嗯..! 目前共有 4 篇文章。 繼續努力。</span>
<span class="collection-header">嗯..! 目前共有 5 篇文章。 繼續努力。</span>
</div>


Expand Down
6 changes: 3 additions & 3 deletions archives/2016/10/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">4</span>
<span class="site-state-item-count">5</span>
<span class="site-state-item-name">文章</span>
</a>
</div>
Expand All @@ -134,7 +134,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">6</span>
<span class="site-state-item-count">8</span>
<span class="site-state-item-name">標籤</span></a>
</div>
</nav>
Expand Down Expand Up @@ -182,7 +182,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
<div class="post-block">
<div class="post-content">
<div class="collection-title">
<span class="collection-header">嗯..! 目前共有 4 篇文章。 繼續努力。</span>
<span class="collection-header">嗯..! 目前共有 5 篇文章。 繼續努力。</span>
</div>


Expand Down
6 changes: 3 additions & 3 deletions archives/2016/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">4</span>
<span class="site-state-item-count">5</span>
<span class="site-state-item-name">文章</span>
</a>
</div>
Expand All @@ -134,7 +134,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">6</span>
<span class="site-state-item-count">8</span>
<span class="site-state-item-name">標籤</span></a>
</div>
</nav>
Expand Down Expand Up @@ -182,7 +182,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
<div class="post-block">
<div class="post-content">
<div class="collection-title">
<span class="collection-header">嗯..! 目前共有 4 篇文章。 繼續努力。</span>
<span class="collection-header">嗯..! 目前共有 5 篇文章。 繼續努力。</span>
</div>


Expand Down
28 changes: 24 additions & 4 deletions archives/2024/11/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">4</span>
<span class="site-state-item-count">5</span>
<span class="site-state-item-name">文章</span>
</a>
</div>
Expand All @@ -134,7 +134,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">6</span>
<span class="site-state-item-count">8</span>
<span class="site-state-item-name">標籤</span></a>
</div>
</nav>
Expand Down Expand Up @@ -182,14 +182,34 @@ <h1 class="site-title">hydaiの空想世界</h1>
<div class="post-block">
<div class="post-content">
<div class="collection-title">
<span class="collection-header">嗯..! 目前共有 4 篇文章。 繼續努力。</span>
<span class="collection-header">嗯..! 目前共有 5 篇文章。 繼續努力。</span>
</div>


<div class="collection-year">
<span class="collection-header">2024<span class="collection-year-count">1</span></span>
<span class="collection-header">2024<span class="collection-year-count">2</span></span>
</div>

<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta-container">
<time itemprop="dateCreated"
datetime="2024-11-24T16:58:22+08:00"
content="2024-11-24">
11-24
</time>
</div>

<div class="post-title">
<a class="post-title-link" href="/2024/11/24/time-machine-speed-up/" itemprop="url">
<span itemprop="name">加速 macOS 的 Time Machine 備份速度</span>
</a>
</div>


</header>
</article>

<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta-container">
Expand Down
28 changes: 24 additions & 4 deletions archives/2024/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">4</span>
<span class="site-state-item-count">5</span>
<span class="site-state-item-name">文章</span>
</a>
</div>
Expand All @@ -134,7 +134,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">6</span>
<span class="site-state-item-count">8</span>
<span class="site-state-item-name">標籤</span></a>
</div>
</nav>
Expand Down Expand Up @@ -182,14 +182,34 @@ <h1 class="site-title">hydaiの空想世界</h1>
<div class="post-block">
<div class="post-content">
<div class="collection-title">
<span class="collection-header">嗯..! 目前共有 4 篇文章。 繼續努力。</span>
<span class="collection-header">嗯..! 目前共有 5 篇文章。 繼續努力。</span>
</div>


<div class="collection-year">
<span class="collection-header">2024<span class="collection-year-count">1</span></span>
<span class="collection-header">2024<span class="collection-year-count">2</span></span>
</div>

<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta-container">
<time itemprop="dateCreated"
datetime="2024-11-24T16:58:22+08:00"
content="2024-11-24">
11-24
</time>
</div>

<div class="post-title">
<a class="post-title-link" href="/2024/11/24/time-machine-speed-up/" itemprop="url">
<span itemprop="name">加速 macOS 的 Time Machine 備份速度</span>
</a>
</div>


</header>
</article>

<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta-container">
Expand Down
28 changes: 24 additions & 4 deletions archives/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">4</span>
<span class="site-state-item-count">5</span>
<span class="site-state-item-name">文章</span>
</a>
</div>
Expand All @@ -134,7 +134,7 @@ <h1 class="site-title">hydaiの空想世界</h1>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">6</span>
<span class="site-state-item-count">8</span>
<span class="site-state-item-name">標籤</span></a>
</div>
</nav>
Expand Down Expand Up @@ -182,14 +182,34 @@ <h1 class="site-title">hydaiの空想世界</h1>
<div class="post-block">
<div class="post-content">
<div class="collection-title">
<span class="collection-header">嗯..! 目前共有 4 篇文章。 繼續努力。</span>
<span class="collection-header">嗯..! 目前共有 5 篇文章。 繼續努力。</span>
</div>


<div class="collection-year">
<span class="collection-header">2024<span class="collection-year-count">1</span></span>
<span class="collection-header">2024<span class="collection-year-count">2</span></span>
</div>

<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta-container">
<time itemprop="dateCreated"
datetime="2024-11-24T16:58:22+08:00"
content="2024-11-24">
11-24
</time>
</div>

<div class="post-title">
<a class="post-title-link" href="/2024/11/24/time-machine-speed-up/" itemprop="url">
<span itemprop="name">加速 macOS 的 Time Machine 備份速度</span>
</a>
</div>


</header>
</article>

<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta-container">
Expand Down
28 changes: 27 additions & 1 deletion atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link href="/atom.xml" rel="self"/>

<link href="https://hyd.ai/"/>
<updated>2024-11-19T05:51:22.934Z</updated>
<updated>2024-11-24T09:20:13.427Z</updated>
<id>https://hyd.ai/</id>

<author>
Expand All @@ -16,6 +16,32 @@

<generator uri="http://hexo.io/">Hexo</generator>

<entry>
<title>加速 macOS 的 Time Machine 備份速度</title>
<link href="https://hyd.ai/2024/11/24/time-machine-speed-up/"/>
<id>https://hyd.ai/2024/11/24/time-machine-speed-up/</id>
<published>2024-11-24T08:58:22.000Z</published>
<updated>2024-11-24T09:20:13.427Z</updated>

<content type="html"><![CDATA[<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>macOS 的 Time Machine 是一個非常好用的備份工具,它曾經多次救援我人生的重要時刻。當時碩士論文寫到一半,macbook pro 直接壞掉,幸好有 Time Machine 的備份,讓我可以如期畢業。</p><p>但是隨著使用的容量越來越大,在備份的過程中,有時候會發現備份的速度變成異常緩慢,甚至出現要十幾個小時才能完成一次備份,尤其人在國外時深感危險。</p><p>在搜尋的時候發現其實世界上有一大堆人也有相同的問題,幾乎都有標準做法了<code>(/ω\)</code></p><span id="more"></span><h2 id="解決方法"><a href="#解決方法" class="headerlink" title="解決方法"></a>解決方法</h2><p>與其他的備份方式不同,Time Machine 有個隱藏的參數會將備份的速度限制在一個較低的數值,且相關的優先順序也是在較低的位置,因此如果不改變這個數值的話,Time Machine 的備份速度就會隨著積累的增加而變得越來越慢。</p><p>很遺憾的是,這個數值是隱藏的,因此我們需要透過終端機來修改這個數值。</p><p>打開終端機以後,輸入以下指令:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">sudo</span> sysctl debug.lowpri_throttle_enabled=0</span><br></pre></td></tr></table></figure><p>這樣一來,Time Machine 的備份速度就會恢復到正常的速度了。</p><h3 id="指令解釋"><a href="#指令解釋" class="headerlink" title="指令解釋"></a>指令解釋</h3><p><code>sudo</code> 是因為我們需要透過 <code>sysctl</code> 進行系統參數的修改,而這個指令是需要 root 權限才能使用的。</p><p><code>sysctl</code> 是一個在 Unix-like 的作業系統中專門用來讀取與修改內核參數的工具。</p><p><code>debug.lowpri_throttle_enabled</code> 是一個參數,當這個參數為 1 時,Time Machine 的備份速度會被限制在一個較低的數值,當這個參數為 0 時,Time Machine 的備份速度就不再受到此限制。</p><p><code>lowpri</code> 是 low priority 的縮寫,<code>throttle</code> 是節流閥的意思,表示限制流量,<code>enabled</code> 是啟用的意思,因此這個參數的意思就是啟用低優先順序的限制。</p><h2 id="恢復原來的設定"><a href="#恢復原來的設定" class="headerlink" title="恢復原來的設定"></a>恢復原來的設定</h2><p>上面的修改會在重新開機後被重置,因此即使忘記恢復原本的設定也沒關係,時間會解決一切。</p><p>若完成備份之後,還是想要馬上恢復成原本的設定,可以輸入以下指令:</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">sudo</span> sysctl debug.lowpri_throttle_enabled=1</span><br></pre></td></tr></table></figure><h2 id="方便的別名"><a href="#方便的別名" class="headerlink" title="方便的別名"></a>方便的別名</h2><p>每次都需要輸入這麼長的指令也是很麻煩的,因此可以使用 <code>alias</code> 來建立一個別名,這樣就能用短短的指令做到同樣的事囉。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 請在你的 .bashrc 或 .zshrc 中加入以下指令</span></span><br><span class="line"><span class="built_in">alias</span> tmspup=<span class="string">&#x27;sudo sysctl debug.lowpri_throttle_enabled=0&#x27;</span></span><br><span class="line"><span class="built_in">alias</span> tmspdown=<span class="string">&#x27;sudo sysctl debug.lowpri_throttle_enabled=1&#x27;</span></span><br><span class="line"><span class="comment"># 日後就能使用 tmspup 與 tmspdown 來快速的切換 Time Machine 的備份速度了</span></span><br></pre></td></tr></table></figure><h2 id="Reference"><a href="#Reference" class="headerlink" title="Reference"></a>Reference</h2><ul><li><a href="https://www.howtogeek.com/843598/how-to-speed-up-your-time-machine-backups/">How to Speed Up Your Time Machine Backups</a></li></ul>]]></content>

<summary type="html">

&lt;h2 id=&quot;前言&quot;&gt;&lt;a href=&quot;#前言&quot; class=&quot;headerlink&quot; title=&quot;前言&quot;&gt;&lt;/a&gt;前言&lt;/h2&gt;&lt;p&gt;macOS 的 Time Machine 是一個非常好用的備份工具,它曾經多次救援我人生的重要時刻。當時碩士論文寫到一半,macbook pro 直接壞掉,幸好有 Time Machine 的備份,讓我可以如期畢業。&lt;/p&gt;
&lt;p&gt;但是隨著使用的容量越來越大,在備份的過程中,有時候會發現備份的速度變成異常緩慢,甚至出現要十幾個小時才能完成一次備份,尤其人在國外時深感危險。&lt;/p&gt;
&lt;p&gt;在搜尋的時候發現其實世界上有一大堆人也有相同的問題,幾乎都有標準做法了&lt;code&gt;(/ω\)&lt;/code&gt;&lt;/p&gt;

</summary>

<category term="Note" scheme="https://hyd.ai/categories/Note/"/>


<category term="macOS" scheme="https://hyd.ai/tags/macOS/"/>

<category term="Time Machine" scheme="https://hyd.ai/tags/Time-Machine/"/>

</entry>

<entry>
<title>蓋一個簡單的縮網址服務</title>
<link href="https://hyd.ai/2024/11/19/url-shortener/"/>
Expand Down
Loading

0 comments on commit 77699d7

Please sign in to comment.