<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Crontab on Margrop Blog</title>
    <link>https://blog.margrop.net/en/tag/crontab/</link>
    <description>Recent content in Crontab on Margrop Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>
    <lastBuildDate>Sat, 13 Jun 2026 07:20:00 +0800</lastBuildDate>
    <atom:link href="https://blog.margrop.net/en/tag/crontab/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>From 5m14s to 0.6s: How I Rebuilt My Docker Hub Mirror After Hitting Three Walls</title>
      <link>https://blog.margrop.net/en/post/docker-registry-mirror-rebuild-2026/</link>
      <pubDate>Sat, 13 Jun 2026 07:20:00 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/docker-registry-mirror-rebuild-2026/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;My home lab had a &lt;code&gt;registry:2&lt;/code&gt; pull-through cache fronting Docker Hub for years, and it was fine. Then one day pulling a 5 MB &lt;code&gt;alpine:3.19&lt;/code&gt; took 5 minutes and 14 seconds. This post is the full forensic log of how I traced the slowdown, evaluated 8 candidate mirrors with real measurements (not vibes), and finished with a 5-line bash script on cron that &lt;strong&gt;auto-fails-over&lt;/strong&gt; when the primary mirror goes down. Every number in this article was captured on my own hardware, in my own network, at one specific moment in time.&lt;/p&gt;&#xA;&lt;p&gt;If you also self-host a Docker Hub mirror, or your team runs an internal registry, the Q&amp;amp;A at the bottom will probably save you 3 hours of pain.&lt;/p&gt;&#xA;&lt;/blockquote&gt;</description>
    </item>
    <item>
      <title>PVE disk inspection connected to UptimeKuma - the 404 pitfall and the final script</title>
      <link>https://blog.margrop.net/en/post/pve-host-virtual-machine-disk-space-monitor-experience-step-two/</link>
      <pubDate>Wed, 14 May 2025 22:16:48 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/pve-host-virtual-machine-disk-space-monitor-experience-step-two/</guid>
      <description>Read first The previous article showed how to push the PVE host&amp;rsquo;s LVM-Thin usage to UptimeKuma. After following the instructions, some readers got a 404 when the script used curl. This article explains the cause, fixes the script, and provides an optional upgrade path. Follow along from scratch and you should succeed on the first try.&#xA;1 Phenomenon: curl ... 404 curl -fsS --retry 3 \ &amp;#34;${PUSH_URL}?status=up&amp;amp;msg=OK&amp;#34; \ -H &amp;#39;Content-Type: application/json&amp;#39; \ --data-raw &amp;#34;$result&amp;#34; # ↳ curl: (22) The requested URL returned error: 404 The same URL works in a browser or with curl GET:</description>
    </item>
    <item>
      <title>PVE host disk space monitoring - from pitfalls to UptimeKuma</title>
      <link>https://blog.margrop.net/en/post/pve-host-virtual-machine-lvm-disk-space-monitor-experience/</link>
      <pubDate>Wed, 14 May 2025 22:11:33 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/pve-host-virtual-machine-lvm-disk-space-monitor-experience/</guid>
      <description>Target Reader This article is written for readers who have just started using Proxmox VE (referred to as PVE) and want to copy the steps and get it running. The article aims to:&#xA;explain why the problem happens provide the full command at each step give troubleshooting ideas when something goes wrong 0 Background - What went wrong? The official PVE installation wizard defaults to putting the VM disk into the LVM-Thin pool (commonly pve/data)</description>
    </item>
    <item>
      <title>Scheduled Reboot for a Specific VM on PVE</title>
      <link>https://blog.margrop.net/en/post/pve-corntab-restart-vm/</link>
      <pubDate>Sun, 12 Mar 2023 20:59:38 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/pve-corntab-restart-vm/</guid>
      <description>&lt;h1 id=&#34;background&#34;&gt;Background&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;It was observed that the &lt;code&gt;HomeAssistant&lt;/code&gt; VM&amp;rsquo;s memory usage kept increasing over time and eventually hit &lt;code&gt;OOM&lt;/code&gt;. This happened no matter how many versions were upgraded, so it is suspected that &lt;code&gt;HomeAssistant&lt;/code&gt; has a memory leak.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;solution&#34;&gt;Solution&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;At the VM layer, reboot the VM periodically (once a day)&lt;/li&gt;&#xA;&lt;li&gt;Log in to the server where &lt;code&gt;PVE&lt;/code&gt; is running&lt;/li&gt;&#xA;&lt;li&gt;Run &lt;code&gt;crontab -e&lt;/code&gt; and enter the following:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin&#xA;&#xA;0 12 * * * qm stop 2007 ; sleep 10 ; qm start 2007&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;Note: &lt;code&gt;2007&lt;/code&gt; in the command is the &lt;code&gt;vmid&lt;/code&gt;, the globally unique ID of the VM&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
  </channel>
</rss>
