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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. can we set up two different backup options? (external EXT4 and S3 bucket)

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

Scheduled Pinned Locked Moved Discuss
backups
13 Posts 7 Posters 2.1k Views 7 Watching
  • 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.
  • subvenS subven

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

    humptydumptyH Offline
    humptydumptyH Offline
    humptydumpty
    wrote on last edited by humptydumpty
    #3

    @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!

    subvenS 1 Reply Last reply
    0
    • humptydumptyH 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!

      subvenS Offline
      subvenS Offline
      subven
      wrote on last edited by subven
      #4

      @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.

      humptydumptyH 1 Reply Last reply
      2
      • subvenS 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.

        humptydumptyH Offline
        humptydumptyH Offline
        humptydumpty
        wrote on last edited by
        #5

        @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
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #6

          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.

          robiR 1 Reply Last reply
          4
          • girishG girish

            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.

            robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #7

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

            Conscious tech

            1 Reply Last reply
            3
            • d19dotcaD Offline
              d19dotcaD Offline
              d19dotca
              wrote on last edited by
              #8

              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

              subvenS 1 Reply Last reply
              1
              • d19dotcaD Offline
                d19dotcaD Offline
                d19dotca
                wrote on last edited by d19dotca
                #9

                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

                C 1 Reply Last reply
                1
                • d19dotcaD d19dotca

                  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.

                  subvenS Offline
                  subvenS Offline
                  subven
                  wrote on last edited by
                  #10

                  @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.

                  WiseMetalheadW 1 Reply Last reply
                  1
                  • subvenS subven

                    @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.

                    WiseMetalheadW Offline
                    WiseMetalheadW Offline
                    WiseMetalhead
                    translator
                    wrote on last edited by
                    #11

                    @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
                    0
                    • d19dotcaD 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/

                      C Offline
                      C Offline
                      CBCUN
                      wrote on last edited by
                      #12

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

                      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/

                      Hello,

                      I'll take up the topic here again. The possibility of setting up two backup targets should be manageable in terms of implementation effort (after all, everything is already in place). Will this function be implemented? @girish

                      Greetings

                      1 Reply Last reply
                      2
                      • girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #13

                        @CBCUN It's in our TODO list. I don't have an ETA yet.

                        1 Reply Last reply
                        2
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search