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

    can we set up two different backup options? (external EXT4 and S3 bucket)

    Discuss
    backups
    6
    11
    267
    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.
    • humptydumpty
      humptydumpty last edited by girish

      Is it possible to have different apps on the same cloudron backup data to two different backup locations?

      My goal: I want to backup nextcloud data to an external ext4 drive while other apps will get uploaded to a Backblaze S3 bucket.

      1 Reply Last reply Reply Quote 1
      • subven
        subven last edited by

        You could backup your nextcloud data by a custom CRON where you just mirror copy Nextclouds appdata dir.

        humptydumpty 1 Reply Last reply Reply Quote 1
        • humptydumpty
          humptydumpty @subven last edited by humptydumpty

          @subven I'm not sure how to do that but I'll look into it. Thank you!

          Edits:
          found step 1: https://docs.cloudron.io/apps/#cron
          found step 2: https://docs.cloudron.io/volumes/#ext4

          I'm guessing I have to set up the EXT4 drive as a VOLUME mount and use the S3 as the main backup option. Then, create the custom cron to mirror to the ext4 drive like you said. Cool!

          subven 1 Reply Last reply Reply Quote 0
          • subven
            subven @humptydumpty last edited by subven

            @humptydumpty not really as an app CRON but a cronjob on OS level. SSH into your server and do crontab -e --> choose nano if you're not familiar with VIM. Just mount an external storage to the system and configure a cronjob to periodically rm and cp.

            Just to be clear: This way you backup Nextcloud DATA, not databases and app settings like with a regular backup.

            humptydumpty 1 Reply Last reply Reply Quote 2
            • humptydumpty
              humptydumpty @subven last edited by

              @subven those steps are way above my pay grade. I have to set up a test server to fool around with first. Thanks for the advice!

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

                https://rclone.org/ is great for this sort of automation. Just put the cronjob in your laptop or equivalent to copy over files between different remotes.

                robi 1 Reply Last reply Reply Quote 4
                • robi
                  robi @girish last edited by

                  @girish rclone integration for Cloudron as a feature would be a big win for use cases like this.

                  Life of Advanced Technology

                  1 Reply Last reply Reply Quote 3
                  • d19dotca
                    d19dotca last edited by

                    Interestingly I'm thinking of doing something like this. I recently migrated to an OVH dedicated server (finally was able to justify it), and it comes with some backup space over CIFS. I'm assuming that'll be much quicker to backup, so then I can just use that but also still have a cron that copies it over to an s3 bucket or something like that in the background overnight. Still pondering how to implement this but seems like something I may end up doing. Will report back if I can get a good detailed process down for it.

                    --
                    Dustin Dauncey
                    www.d19.ca

                    subven 1 Reply Last reply Reply Quote 1
                    • d19dotca
                      d19dotca last edited by d19dotca

                      Would definitely love to see this get implemented though so we can control backups directly in Cloudron rather than needing to setup external software for that use-case. Using Cloudron directly to setup multiple backups (i.e. daily or twice daily to external disk, then a second backup once weekly to s3 object storage would be amazing).

                      Feature request filed for this in 2020: https://forum.cloudron.io/topic/3818/backups-ability-to-add-multiple-storage-provider-location/

                      --
                      Dustin Dauncey
                      www.d19.ca

                      1 Reply Last reply Reply Quote 1
                      • subven
                        subven @d19dotca last edited by

                        @d19dotca yeah you could have the "fast" CIFS as backup target and replicate the backup to the S3 bucket. Having a off site backup is crucial in case there is problems with your provider. However, the original topic here was to backup an app to another target. Makes sense if you have for example a NAS with a huge media collection you want to backup but not within your regular Cloudron backup. With the method I suggested you would save (maybe encrypted) files and appdata but not databases so it's only a workaround if at all.

                        WiseMetalhead 1 Reply Last reply Reply Quote 1
                        • WiseMetalhead
                          WiseMetalhead translator @subven last edited by

                          @subven said in can we set up two different backup options? (external EXT4 and S3 bucket):

                          but not databases so it's only a workaround if at all.

                          What about the dump inside the application folder? Is it possible to use it for database recovery?

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Powered by NodeBB