<?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[Cron - which reference for volume ?]]></title><description><![CDATA[<p dir="auto">I have a volume set up <code>/mnt/cctv</code> to facilitate access between Homeassistant (capture) and Emby (view).</p>
<p dir="auto">I need to delete old cctv videos to avoid unnecessary disk use and keep video lists manageable in the apps.</p>
<p dir="auto">I plan to add a cron job like this using variable filename (videos named with format of <code>yymmdd-hhmmss-location.mp4</code>) :</p>
<pre><code># *    *    *    *    * command to be executed
7    4    *    *    *  rm /mnt/cctv/$(date --date "30 days ago" +%y%m%d)-*-*.* 
</code></pre>
<p dir="auto">Question :</p>
<ul>
<li>should the command reference the mount point <code>/mnt/cctv</code> ?</li>
<li>or the location known to the app <code>/media/cctv</code> ?</li>
</ul>
<p dir="auto">And will there be a permissions issue ?<br />
I guess if using <code>/media/cctv</code> it should be ok.<br />
So maybe the latter ?</p>
]]></description><link>https://forum.cloudron.io/topic/6763/cron-which-reference-for-volume</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 14:18:32 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/6763.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 Apr 2022 14:17:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cron - which reference for volume ? on Tue, 05 Apr 2022 20:32:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Thank you.<br />
Not a UI issue at all.  Just me not quite understanding.<br />
<code>/media</code> makes sense now.</p>
]]></description><link>https://forum.cloudron.io/post/45721</link><guid isPermaLink="true">https://forum.cloudron.io/post/45721</guid><dc:creator><![CDATA[timconsidine]]></dc:creator><pubDate>Tue, 05 Apr 2022 20:32:45 GMT</pubDate></item><item><title><![CDATA[Reply to Cron - which reference for volume ? on Tue, 05 Apr 2022 17:38:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/timconsidine" aria-label="Profile: timconsidine">@<bdi>timconsidine</bdi></a> said in <a href="/post/45708">Cron - which reference for volume ?</a>:</p>
<blockquote>
<p dir="auto">When Cloudron sets up a volume on the server, it asks you to put it in /mnt</p>
</blockquote>
<p dir="auto">Yes, correct, but this is purely "internal". AFAIK, this path is never shown in the UI. Maybe we missed some place.</p>
<blockquote>
<p dir="auto">But the app references this as /media in the Storage of app config.</p>
</blockquote>
<p dir="auto">As <a class="plugin-mentions-user plugin-mentions-a" href="/user/fbartels" aria-label="Profile: fbartels">@<bdi>fbartels</bdi></a> said, the cron is run in context of container, so <code>/media/&lt;volumename&gt;</code> is the correct path.</p>
]]></description><link>https://forum.cloudron.io/post/45713</link><guid isPermaLink="true">https://forum.cloudron.io/post/45713</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 05 Apr 2022 17:38:36 GMT</pubDate></item><item><title><![CDATA[Reply to Cron - which reference for volume ? on Tue, 05 Apr 2022 15:04:53 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> thank you, that answers the question : should be <code>/media/cctv</code> then</p>
<p dir="auto">When Cloudron sets up a volume on the server, it asks you to put it in <code>/mnt</code><br />
But the app references this as <code>/media</code> in the Storage of app config.<br />
Maybe I am not understanding fully about Cloudron volume creation / management</p>
]]></description><link>https://forum.cloudron.io/post/45708</link><guid isPermaLink="true">https://forum.cloudron.io/post/45708</guid><dc:creator><![CDATA[timconsidine]]></dc:creator><pubDate>Tue, 05 Apr 2022 15:04:53 GMT</pubDate></item><item><title><![CDATA[Reply to Cron - which reference for volume ? on Tue, 05 Apr 2022 14:57:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/timconsidine" aria-label="Profile: timconsidine">@<bdi>timconsidine</bdi></a>,</p>
<p dir="auto">maybe I am misunderstanding the problem, but since the cron is executed in the container/app it also need to be working with the path you seen in the container.</p>
]]></description><link>https://forum.cloudron.io/post/45707</link><guid isPermaLink="true">https://forum.cloudron.io/post/45707</guid><dc:creator><![CDATA[fbartels]]></dc:creator><pubDate>Tue, 05 Apr 2022 14:57:28 GMT</pubDate></item></channel></rss>