<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[What happens before a backup is &quot;created&quot;?]]></title><description><![CDATA[<p dir="auto">I love the improved backup functionalities and more detailed information regarding backups in recent releases, thanks!</p>
<p dir="auto"><strong>What happens between the scheduled start of a backup and the time a backup is created?</strong><br />
In my case: What happened between 23:00 and 3:38 AM?</p>
<p dir="auto">Let me add the context:</p>
<ul>
<li>
<p dir="auto">Backup schedule is set to 23:00 daily. When is that? If I believe "System" --&gt; "Setting" it would be my GMT timezone, because there it says: "UI timestamps always follow the browser’s time zone."</p>
</li>
<li>
<p dir="auto">When I check the system logs, I can see exactly at 23:00 a task, is that the beginning of the backup process?</p>
</li>
</ul>
<pre><code>2026-04-24T23:00:00.009Z locks: write: current locks: {"full_backup_task_8663c238-b4f3-482b-8c4c-a6809dcdeed9":null}
2026-04-24T23:00:00.009Z locks: acquire: full_backup_task_8663c238-b4f3-482b-8c4c-a6809dcdeed9
2026-04-24T23:00:00.018Z tasks: startTask - starting task 7538 with options {"timeout":86400000,"nice":15,"memoryLimit":1024,"oomScoreAdjust":-999}. logs at /home/yellowtent/platformdata/logs/tasks/7538.log
2026-04-24T23:00:00.018Z tasks: updating task 7538 with: {"pending":false}
2026-04-24T23:00:00.018Z shell: tasks: /usr/bin/sudo --non-interactive -E /home/yellowtent/box/src/scripts/starttask.sh 7538 /home/yellowtent/platformdata/logs/tasks/7538.log 15 1024 -999
</code></pre>
<ul>
<li>However looking at the creation time of the backup in "Backup" --&gt; "Sites" (in Backup "Info") it says: "created at 03:38 AM".</li>
<li>On the properties of the same backup, I can see "Backup duration: 2h 38m 4s"</li>
</ul>
<p dir="auto">That my backup takes almost 3 hours is fine with me. But I would like to understand what is happening before the backup is actually "created".</p>
<p dir="auto">I checked the system logs but I didn't find much revealing. The Update Schedule is set to 5 AM, and it may interfere with the Backup? Is there a recommendation for doing either the Backup or the update first? I also read that before updates an Backup is taken automatically and I am not sure if that would be skipped if there is a recent backup.</p>
<p dir="auto">Any hint would be appreciated! And sorry for squeezing in many questions in that post, but it may reveal some context.</p>
]]></description><link>https://forum.cloudron.io/topic/15441/what-happens-before-a-backup-is-created</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 11:20:23 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/15441.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 25 Apr 2026 05:37:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to What happens before a backup is &quot;created&quot;? on Sat, 25 Apr 2026 09:35:49 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/nottheend" aria-label="Profile: nottheend">@<bdi>nottheend</bdi></a></p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nottheend" aria-label="Profile: nottheend">@<bdi>nottheend</bdi></a> <a href="/post/124005">said</a>:</p>
<p dir="auto">When I check the system logs, I can see exactly at 23:00 a task, is that the beginning of the backup process?</p>
</blockquote>
<p dir="auto">Yes, that is the start of the full backup task.</p>
<hr />
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nottheend" aria-label="Profile: nottheend">@<bdi>nottheend</bdi></a> <a href="/post/124005">said</a>:</p>
<p dir="auto">That my backup takes almost 3 hours is fine with me. But I would like to understand what is happening before the backup is actually "created".</p>
</blockquote>
<p dir="auto">Depending on the backup type <code>tgz</code> or <code>rsync</code> it can take some time depending on the apps and size of the apps that need to be included in the backup.<br />
For the integrity check everything needs to be indexed and sha256 hashed first before the backup to then validate it after the backup.<br />
For example, Nextcloud stores image previews (thumbnails) in a hashed structured folder system within the appdata directory to optimize performance and prevent too many files in a single directory.<br />
But this in turn leads to constant changes due to the hashed structured folder system and is so "deep" that sometimes the <code>tgz</code> format just fails because the folder depth, thus the name of the path, is too big to be stored in a <code>tgz</code> due to the primary limitation is the <code>PATH_MAX</code> constant, which is typically 4096 bytes.<br />
And also takes longer time to index and hash.</p>
<hr />
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nottheend" aria-label="Profile: nottheend">@<bdi>nottheend</bdi></a> <a href="/post/124005">said</a>:</p>
<p dir="auto">The Update Schedule is set to 5 AM, and it may interfere with the Backup?</p>
</blockquote>
<p dir="auto">That is no issue.<br />
When the backup takes longer, the system update task is simply scheduled after that.</p>
<p dir="auto">Depending on the backup provider, for example <code>SSHFS</code>, the <code>rsync</code> format can be way faster than <code>tgz</code>.<br />
The initial backup of <code>rsync</code> can take longer, but every subsequent backup is then very fast since Cloudron can do a remote-copy call instead of copying everything again and again from the Cloudron host to the provider.<br />
This saves bandwidth and compute time, increasing the backup times significantly.<br />
For example, my own Cloudron with 24 apps and 600 GB of backup data, only took 36 minutes 28 seconds this night to do a full backup with the <code>rsync</code> format on <code>SSHFS</code> with a Hetzner Storage Box.</p>
<hr />
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nottheend" aria-label="Profile: nottheend">@<bdi>nottheend</bdi></a> <a href="/post/124005">said</a>:</p>
<p dir="auto">I also read that before updates an Backup is taken automatically and I am not sure if that would be skipped if there is a recent backup.</p>
</blockquote>
<p dir="auto">A full system backup before every Cloudron update is default and is only skipped when explicitly configured so.<br />
If you are using the <code>rsync</code> type backup, the backup before the update would be very fast since it just took a backup before.<br />
Also from my system, since a backup was taken before the Cloudron update, the pre-update backup only took 4 minutes 31 seconds.</p>
<hr />
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nottheend" aria-label="Profile: nottheend">@<bdi>nottheend</bdi></a> <a href="/post/124005">said</a>:</p>
<p dir="auto">And sorry for squeezing in many questions in that post, but it may reveal some context.</p>
</blockquote>
<p dir="auto">All good! Always happy to help.</p>
]]></description><link>https://forum.cloudron.io/post/124007</link><guid isPermaLink="true">https://forum.cloudron.io/post/124007</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Sat, 25 Apr 2026 09:35:49 GMT</pubDate></item></channel></rss>