<?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[Hack a custom backup Retention and Schedule]]></title><description><![CDATA[<p dir="auto">Can we do something like pick one of the least appealing options for backup/retention options and manually change the numbers in box code behind the scenes, so that we get the custom timing we desire w/o losing the config as Cloudron updates? (unless we change the UI backup options again)</p>
<p dir="auto">Will anything overwrite this other than UI selection?</p>
<p dir="auto">That way at least advanced users can tune their fleet. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=d69db52af35" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/topic/7304/hack-a-custom-backup-retention-and-schedule</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 04:49:29 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/7304.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Jun 2022 17:52:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hack a custom backup Retention and Schedule on Fri, 01 Jul 2022 15:12:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fbartels" aria-label="Profile: fbartels">@<bdi>fbartels</bdi></a> Yes, hence the ask for a single place to<br />
set it, so it's in use until changed and the change survives updates.</p>
]]></description><link>https://forum.cloudron.io/post/50461</link><guid isPermaLink="true">https://forum.cloudron.io/post/50461</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Fri, 01 Jul 2022 15:12:30 GMT</pubDate></item><item><title><![CDATA[Reply to Hack a custom backup Retention and Schedule on Fri, 01 Jul 2022 05:19:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robi" aria-label="Profile: robi">@<bdi>robi</bdi></a> retention by time you could already set through <code>keepWithinSecs</code> i would say.</p>
<p dir="auto">For the rest (although i would rather recommend to work on the storage limitations) maybe it would be an alternative to backup the Cloudron to disk and have another application pick up the moving to storage and rotation/retention part. There was a restic how to here recently that could help.</p>
]]></description><link>https://forum.cloudron.io/post/50414</link><guid isPermaLink="true">https://forum.cloudron.io/post/50414</guid><dc:creator><![CDATA[fbartels]]></dc:creator><pubDate>Fri, 01 Jul 2022 05:19:17 GMT</pubDate></item><item><title><![CDATA[Reply to Hack a custom backup Retention and Schedule on Thu, 30 Jun 2022 21:42:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fbartels" aria-label="Profile: fbartels">@<bdi>fbartels</bdi></a></p>
<p dir="auto">o Happyness level 1 - custom static retention<br />
o Happyness level 2 - custom dynamic retention based on backup size, yes<br />
o Happyness level 3 - custom dynamic retention based on level 2 with thresholds AND different destinations (of different sizes, including local)</p>
]]></description><link>https://forum.cloudron.io/post/50410</link><guid isPermaLink="true">https://forum.cloudron.io/post/50410</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Thu, 30 Jun 2022 21:42:38 GMT</pubDate></item><item><title><![CDATA[Reply to Hack a custom backup Retention and Schedule on Thu, 30 Jun 2022 20:08:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robi" aria-label="Profile: robi">@<bdi>robi</bdi></a> so the change you need is rather a retention based on backup size?</p>
]]></description><link>https://forum.cloudron.io/post/50408</link><guid isPermaLink="true">https://forum.cloudron.io/post/50408</guid><dc:creator><![CDATA[fbartels]]></dc:creator><pubDate>Thu, 30 Jun 2022 20:08:34 GMT</pubDate></item><item><title><![CDATA[Reply to Hack a custom backup Retention and Schedule on Thu, 30 Jun 2022 18:44:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fbartels" aria-label="Profile: fbartels">@<bdi>fbartels</bdi></a> Thanks for this..  the two main things are retention beyond the options available and a possibly more dynamic schedule (thanks to your API example).</p>
<p dir="auto">One system we have is doing hourly local backups to keep important content from being lost, which is a lot, however there isn't a retention config that fits the needs. Hence a custom setting would be peachy.</p>
<p dir="auto">Once remote backups begin, some of those destinations have storage limitations and again the retention needs adjusting to keep within those limits w/o doubling costs, etc..</p>
<p dir="auto">The only other thing that would be missing is more data on size of backups directly so it doesn't have to be figured out via other indirect means (like looking back from remote backup sources how much is used, we should know how much is intended to be written.)</p>
]]></description><link>https://forum.cloudron.io/post/50406</link><guid isPermaLink="true">https://forum.cloudron.io/post/50406</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Thu, 30 Jun 2022 18:44:12 GMT</pubDate></item><item><title><![CDATA[Reply to Hack a custom backup Retention and Schedule on Thu, 30 Jun 2022 18:12:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/robi" aria-label="Profile: robi">@<bdi>robi</bdi></a>,</p>
<p dir="auto">what kind of settings do you want to change? I would always discourage changing source files, simply because any update could potentially overwrite the custom changes.</p>
<p dir="auto">Even if retention and schedule patterns<br />
<a href="https://docs.cloudron.io/api.html#tag/Settings/paths/~1settings~1backup_config/post" target="_blank" rel="noopener noreferrer nofollow ugc">are not part of the documentation</a>, looking in the browser console they still can be set with a simple curl request.</p>
<pre><code>curl 'https://my.xxx/api/v1/settings/backup_config' \
  -H 'authorization: Bearer xxx' \
  --data-raw '{"provider":"minio","format":"tgz","bucket":"xxx-9wdeu","prefix":"","accessKeyId":"xxx","secretAccessKey":"●●●●●●●●","endpoint":"https://xxx","region":"us-east-1","acceptSelfSignedCerts":false,"s3ForcePathStyle":true,"retentionPolicy":{"keepWithinSecs":2592000},"schedulePattern":"00 00 23 * * *","memoryLimit":8589934592,"uploadPartSize":20971520,"password":"●●●●●●●●"}' \
  --compressed
</code></pre>
]]></description><link>https://forum.cloudron.io/post/50404</link><guid isPermaLink="true">https://forum.cloudron.io/post/50404</guid><dc:creator><![CDATA[fbartels]]></dc:creator><pubDate>Thu, 30 Jun 2022 18:12:10 GMT</pubDate></item></channel></rss>