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. How to backup to OVH Cloud Archive

How to backup to OVH Cloud Archive

Scheduled Pinned Locked Moved Discuss
backups
11 Posts 4 Posters 3.7k Views 4 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.
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by girish
      #1

      Following up the discussion from https://forum.cloudron.io/topic/1392/what-s-coming-in-3-0/8

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

        For a start, I couldn't figure out how to sign up with Cloud Storage. I signed up at ovh.com (United States) and there is no Cloud Storage option. I guess this is available in a few regions?

        For those, who have managed to sign up for Cloud Storage, I suspect this is just a SSH mountable directory. You can follow the instructions at https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh to mount the directory at say "/var/backups". You can then use Cloudron's file system backend to backup files to OVH. But I cannot confirm if this works since I haven't tried this myself.

        S 1 Reply Last reply
        0
        • girishG girish

          For a start, I couldn't figure out how to sign up with Cloud Storage. I signed up at ovh.com (United States) and there is no Cloud Storage option. I guess this is available in a few regions?

          For those, who have managed to sign up for Cloud Storage, I suspect this is just a SSH mountable directory. You can follow the instructions at https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh to mount the directory at say "/var/backups". You can then use Cloudron's file system backend to backup files to OVH. But I cannot confirm if this works since I haven't tried this myself.

          S Offline
          S Offline
          saglagla
          wrote on last edited by
          #3

          Hey @girish
          Thanks for the topic.
          The OVH solution that I want to use is this one :
          https://www.ovh.com/world/public-cloud/storage/cloud-archive/

          To enable it, you need an account, then a tenant on the Openstack Part of OVH.
          You'r tutorial is quite intresting for one part but in case of failing backup (OVH unavailabled by exemple, that implied that we need to check on the server manually and not directly on the cloudron interface with swift/rsync compatibilities. But I can undestand that not easy to implement their solution..

          The other solution is this one : https://www.ovh.com/world/public-cloud/storage/object-storage/ wich is simply the swift API.

          I'm off for few days with limited access to my server. I will try to check your solution ASAP ! 🙂

          1 Reply Last reply
          0
          • S Offline
            S Offline
            saglagla
            wrote on last edited by
            #4

            Okay so, the best way is to mount the cold backup bucket with this https://github.com/ovh/svfs and try to backup localy.

            But this imply to let cloudron back up localy and the system server need to handdle the upload of backup.

            If cloudron handle the backup upload that would be more secured.

            There is https://cloud.scaleway.com witch is providing S3 storage for beta testing free but not in France saddly ... (Region NL)

            1 Reply Last reply
            0
            • S Offline
              S Offline
              saglagla
              wrote on last edited by
              #5

              Else, there is rclone wich handdle pretty well ovh, scaleway and minio server. What about implement the rclone control in the Webmin ?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                saglagla
                wrote on last edited by
                #6

                Hello ! 🙂
                An update ?

                1 Reply Last reply
                0
                • nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by
                  #7

                  There is currently no update on this. As you mentioned earlier, if you can mount an external storage as a local filesystem, then the filesystem backup backend may work. The filesystem should support hardlinks though, you can read more about that at https://cloudron.io/documentation/backups/#filesystem

                  S 1 Reply Last reply
                  0
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #8

                    FWIW, I could never figure how to sign up to ovh because it always redirects me to the canada site which doesn't support cloud archive. Maybe I am missing something.

                    1 Reply Last reply
                    0
                    • nebulonN nebulon

                      There is currently no update on this. As you mentioned earlier, if you can mount an external storage as a local filesystem, then the filesystem backup backend may work. The filesystem should support hardlinks though, you can read more about that at https://cloudron.io/documentation/backups/#filesystem

                      S Offline
                      S Offline
                      saglagla
                      wrote on last edited by
                      #9

                      @nebulon Yes I know but I think it's a kind of "dirty intregation" regarding how much you have implemented Amazon/DigitalOcean S3 ... And I'm probably not the only one that need a backup in French Infrastructures. 🙂

                      @girish Hum, So bad because it's totally functionnal for me ... 😞 I don't know if there is some limitations for others countries.

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

                        Just wanted to write out some steps here for everyone as I was finally able to get this working with OVH Object Storage (not Cloud Archive but I don't think Cloud Archive is intended for this use-case anyways).

                        1. Create your Horizon user at OVH so you have OpenStack (Swift) API access.

                        2. Create a new Object Storage container (aka bucket) and note the region you create it in as you'll need that later.

                        3. Follow the guide by OVH to install and use the OpenStack client on command-line. You will need this for step 4.

                        4. Follow the next guide by OVH to get started with the Swift API for S3 usability. Here is where you will create your credentials for ec2 in OpenStack. In my experience the "source" command didn't work, so I had to manually "EXPORT" the various variables from the rc2 YML config file you download from Horizon/OpenStack.

                        5. Once you've got your ec2 credentials, use the key ID and access key in setting up the backup storage in Cloudron as follows:
                          Storage Provider: S3 API Compatible (v4)
                          Endpoint: https://storage.<region>.cloud.ovh.net/
                          Bucket name: <nameOfBucket/Container>
                          Access key id: <keyID_fromStep4>
                          Secret access key: <accessKey_fromStep4>
                          (then the rest of the settings are all as you prefer)

                        It should then succeed as it did for me. If I missed anything, let me know and I'll clarify.

                        By the way, the way OpenStack manages large files is it creates a second container with the name of your container and a +segments added to the end of the name. I have confirmed with OVH Support that you only get charged for the one container, not both. Additionally, I find in my experience that it is quicker to use Tarball (zipped) instead of rsync, rsync doesn't seem to play nicely with S3-compatible storage options (or at least OVH's implementation of it). It'll still work, but just way longer and it doesn't seem there's any benefit of it only syncing necessary files after the initial one. Your mileage may vary, but I'll be happy to help further if I can.

                        --
                        Dustin Dauncey
                        www.d19.ca

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

                          @d19dotca Thanks for the write up, I will repurpose it for some our docs.

                          Another user had actually informed us about this and it's been working reliably for them. So, we already had added OVH storage in the backups UI for the next release.

                          357c53be-e4aa-4bcc-8cac-b8d7d543e388-image.png

                          1 Reply Last reply
                          1
                          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