Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Volume Backup

    Support
    volumes backup
    3
    4
    218
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      ekevu123 last edited by girish

      If I install Nextcloud as an app in Cloudron but have the data on a volume, will it be backed up to a cloud provider of my choice if I use the standard Cloudron backup function for the application?

      Also, does it matter if I use either of these choices:

      • Set up the volume in Cloudron directly
      • Set up the volume as the data location for Nextcloud
      • Use the volume as an external storage in the Nextcloud settings itself

      This similar thread here (https://forum.cloudron.io/topic/6778/volumes-and-backup/9) has left some room for interpretation, let's say, but if I understood the logic correctly, then the data will be backed up if I change the app data directory.

      It's not clear to me, however, why the backup doesn't take place if I add the volume directly into Cloudron. Isn't this a sort of higher-level data directory definition for all apps?

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @ekevu123 last edited by

        @ekevu123 In 7.2.4, we fixed a whole bunch of UX issues surrounding this.

        If I install Nextcloud as an app in Cloudron but have the data on a volume, will it be backed up to a cloud provider of my choice if I use the standard Cloudron backup function for the application?

        Yes. I assume by "data" you mean https://docs.cloudron.io/apps/#data-directory . Note that the new UI here says explicitly that any data is here is part of the backup.

        Set up the volume in Cloudron directly
        Set up the volume as the data location for Nextcloud

        The data directory setting inside nextcloud should not be changed. It's managed by packaging to always write in the container's local /app/data. Cloudron will setup this /app/data to the volume you specify and it will be part of the backup.

        Use the volume as an external storage in the Nextcloud settings itself

        External storage that you setup inside nextcloud is not part of the backup. You would do this by setting up a mount - https://docs.cloudron.io/apps/#mounts . The mount UI now explicitly says data there is not part of the backup.

        BTW, I had to point at the text because the non-english translations might not have caught up on the change.

        M 1 Reply Last reply Reply Quote 0
        • M
          msbt App Dev @girish last edited by

          @girish the user might refer to a Nextcloud setup with a mounted volume as data directory which is set in Nextclouds config.php via 'datadirectory' => '/media/cloud', like I've described here - which does not backup the actual files, only Nextcloud data. Using this for months without any issues, should we worry that it will be not supported anymore at some point? 😬

          girish 1 Reply Last reply Reply Quote 0
          • girish
            girish Staff @msbt last edited by

            @msbt We won't break it intentionally atleast.

            1 Reply Last reply Reply Quote 1
            • Topic has been marked as a question  girish girish 
            • Topic has been marked as solved  girish girish 
            • First post
              Last post
            Powered by NodeBB