<?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[Mount custom volume in app container]]></title><description><![CDATA[<p dir="auto">I would like to propose/discsuss the following: How about an option to bind additional Docker volumes for Cloudron apps?</p>
<p dir="auto">My usecase is the following: As discussed several times in this forum, the built-in backup options of Cloudron are not so well suited for the rather large data directories of Nextcloud. Therefore, I would like to move the Nextcloud data to another volume (which is not included in the Cloudron backup) and change the nextcloud-config to use that as data directory. I would then take care of backing up that directory on the Cloudron host by myself.</p>
<p dir="auto">I currently implemented that behaviour by creating a symlink of the data directory on the host. <a class="plugin-mentions-user plugin-mentions-a" href="/user/tobru" aria-label="Profile: tobru">@<bdi>tobru</bdi></a> mentioned that in <a href="https://forum.cloudron.io/topic/1570/backup-symlinked-data?_=1583333413489">this post</a> and asked how to include it in the backup. I explicitly went that way to exclude a folder from the backup. But that seems like misusing an implementational detail of the Cloudron backup, which might change at some point and should not be done on purpose. Thus my question to bind a custom folder as volume in the app-container.</p>
<p dir="auto">I know that you plan to implement a per-app choice of tgz/rsync backup-options in one of the upcoming releases. That wouldn't really solve it for me though, as I use the Filesystem backup provider and would end up with an additional copy of my nextcloud data. (I use restic btw, to backup both the Cloudron backup-directory and the nextcloud data folder.)</p>
]]></description><link>https://forum.cloudron.io/topic/2206/mount-custom-volume-in-app-container</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 19:37:15 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/2206.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Mar 2020 15:18:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mount custom volume in app container on Wed, 03 Feb 2021 14:06:43 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> Oops, I realized just now, that I didn't reply to your question yet. What I changed and maybe has to be protected from being accidentally overwritten is the 'datadirectory' option in /app/data/config/config.php. I changed that path from the default path to '/media/mymountpoint'.</p>
<p dir="auto">I don't remember if I had Nextcloud in maintenance mode or put the app in recovery mode, while I changed that path and moved the files. But it was either of them. However, I had some duplicate storage paths in the database afterwards and I manually updated the oc_storages table <a href="https://help.nextcloud.com/t/howto-change-move-data-directory-after-installation/17170/38" target="_blank" rel="noopener noreferrer nofollow ugc">as described here</a> and did a files:scan afterwards. But that should not be related to what the code for updates overwrites, I guess.</p>
]]></description><link>https://forum.cloudron.io/post/24777</link><guid isPermaLink="true">https://forum.cloudron.io/post/24777</guid><dc:creator><![CDATA[hendrikvl]]></dc:creator><pubDate>Wed, 03 Feb 2021 14:06:43 GMT</pubDate></item><item><title><![CDATA[Reply to Mount custom volume in app container on Sat, 19 Dec 2020 17:48:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hendrikvl" aria-label="Profile: hendrikvl">@<bdi>hendrikvl</bdi></a> Do you have any notes/instructions on how you changed the datadirectory ? I think we might have to leave a note in the packaging code not to overwrite data directory to not break your installation!</p>
]]></description><link>https://forum.cloudron.io/post/22049</link><guid isPermaLink="true">https://forum.cloudron.io/post/22049</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sat, 19 Dec 2020 17:48:58 GMT</pubDate></item><item><title><![CDATA[Reply to Mount custom volume in app container on Sat, 19 Dec 2020 13:10:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hendrikvl" aria-label="Profile: hendrikvl">@<bdi>hendrikvl</bdi></a> Just wanted to report that I switched to volumes which are now implemented in Cloudron 6. I have the Nextcloud-config and apps in appsdata and a separate Nextcloud datadirectory mounted through a volume. Cloudron takes care of backing up appsdata and I backup the NC-datadirectory separately. Works like a charm.</p>
<p dir="auto">Thanks for implementing that!</p>
]]></description><link>https://forum.cloudron.io/post/22041</link><guid isPermaLink="true">https://forum.cloudron.io/post/22041</guid><dc:creator><![CDATA[hendrikvl]]></dc:creator><pubDate>Sat, 19 Dec 2020 13:10:26 GMT</pubDate></item><item><title><![CDATA[Reply to Mount custom volume in app container on Fri, 06 Mar 2020 13:04:23 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the fast response, <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> and cool to hear that you consider to implement it.</p>
]]></description><link>https://forum.cloudron.io/post/6375</link><guid isPermaLink="true">https://forum.cloudron.io/post/6375</guid><dc:creator><![CDATA[hendrikvl]]></dc:creator><pubDate>Fri, 06 Mar 2020 13:04:23 GMT</pubDate></item><item><title><![CDATA[Reply to Mount custom volume in app container on Wed, 04 Mar 2020 22:38:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hendrikvl" aria-label="Profile: hendrikvl">@<bdi>hendrikvl</bdi></a> Yes, agreed. This is in our immediate roadmap. As you said, what is needed is a way to add a volume (which is a directory on the server) and then place this volume in a location of the app's container (essentially, docker's -v flag). This way this volume can be used by the app to store data (like nextcloud's external storage feature). We also had this idea that we can optionally allow this volume to be backed up just like apps. So, it won't be part of the app's backups but volume's backups. Most likely, we won't implement the backup feature as part of the first iteration though.</p>
<p dir="auto">Time wise, we are making a new release of Cloudron (<a href="https://forum.cloudron.io/topic/2103/what-s-coming-in-4-5">https://forum.cloudron.io/topic/2103/what-s-coming-in-4-5</a>) in the coming days. The volume feature is the roadmap for the release after that.</p>
]]></description><link>https://forum.cloudron.io/post/6357</link><guid isPermaLink="true">https://forum.cloudron.io/post/6357</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 04 Mar 2020 22:38:04 GMT</pubDate></item></channel></rss>