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. Feature Requests
  3. Is it possible to implement custom backup providers?

Is it possible to implement custom backup providers?

Scheduled Pinned Locked Moved Solved Feature Requests
backupscifssmbfsbackblazefeature-request
13 Posts 6 Posters 2.5k 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.
  • girishG girish

    I just found https://github.com/yakovkhalinsky/backblaze-b2 which seems active

    N Offline
    N Offline
    nexbit
    wrote on last edited by
    #4

    @girish said in Is it possible to implement custom backup providers?:

    I just found https://github.com/yakovkhalinsky/backblaze-b2 which seems active

    Yeah it seems fairly active and supported.. So it should be fairly simple to implement a B2 provider, taking the S3 one and adapting for B2, right?
    Regarding the box repo, is it possible to maintain a customized clone and use that on a server instead of the official one? I know that such setup can't be officially supported, and can be potentially dangerous, but it can be useful for some advanced customizations or testing of new functionality.

    Thx for your support,
    P.

    A 1 Reply Last reply
    0
    • F Offline
      F Offline
      fourspace
      wrote on last edited by
      #5

      @girish Any information if SFTP will become an official backup storage solution? If so, do you have any ETA?
      I want to do backups to a Hetzner Storage Box.

      1 Reply Last reply
      2
      • N nexbit

        @girish said in Is it possible to implement custom backup providers?:

        I just found https://github.com/yakovkhalinsky/backblaze-b2 which seems active

        Yeah it seems fairly active and supported.. So it should be fairly simple to implement a B2 provider, taking the S3 one and adapting for B2, right?
        Regarding the box repo, is it possible to maintain a customized clone and use that on a server instead of the official one? I know that such setup can't be officially supported, and can be potentially dangerous, but it can be useful for some advanced customizations or testing of new functionality.

        Thx for your support,
        P.

        A Offline
        A Offline
        adrw
        wrote on last edited by
        #6

        @girish @nexbit Any update on Backblaze B2 backup target? If there's a branch with progress I could put some time towards finishing it. I'm also a developer and am eager to have native Backblaze B2 support. The b2 node library and existing backup target interface linked above looks helpfully straight forward.

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

          @fourspace For Hetzner storage box, just mount it via SMB - https://cloudron.io/documentation/backups/#sambacifs

          @adrw We haven't worked on the B2 backend. If you want to hack on it, first step is to just create a separate project that implements our storage interface -https://git.cloudron.io/cloudron/box/blob/master/src/storage/interface.js . You can see the other backend providers as to how it's implemented (same directory). I am afraid there are no more docs that the code itself. If we have a standalone project that implements the interface (roughly), it's easier for us to integrate it into cloudron.

          A 1 Reply Last reply
          0
          • girishG girish

            @fourspace For Hetzner storage box, just mount it via SMB - https://cloudron.io/documentation/backups/#sambacifs

            @adrw We haven't worked on the B2 backend. If you want to hack on it, first step is to just create a separate project that implements our storage interface -https://git.cloudron.io/cloudron/box/blob/master/src/storage/interface.js . You can see the other backend providers as to how it's implemented (same directory). I am afraid there are no more docs that the code itself. If we have a standalone project that implements the interface (roughly), it's easier for us to integrate it into cloudron.

            A Offline
            A Offline
            adrw
            wrote on last edited by
            #8

            @girish Thanks for the path forward, I'll post back when I have some chance to hack on it and get an implemented Backblaze B2 interface working.

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

              @adrw Thanks! You can join our chat if you need any help.

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

                We put in SSHFS/CIFS in 5.3. B2 support is in 5.4

                M 1 Reply Last reply
                1
                • girishG girish

                  We put in SSHFS/CIFS in 5.3. B2 support is in 5.4

                  M Offline
                  M Offline
                  msbt
                  App Dev
                  wrote on last edited by
                  #11

                  @girish what's the advantage of using the cifs method over filesystem? I've been using hetzner storagebox mounts for months (as fs), what is different when I change to cifs?

                  1 Reply Last reply
                  1
                  • nebulonN Away
                    nebulonN Away
                    nebulon
                    Staff
                    wrote on last edited by
                    #12

                    Currently the main advantage is, that it checks if the filesystem is mounted prior starting the backup. This prevents situations where for some reason the mountpoint got unmounted (ie. network errors) and the regular filesystem backup provider would then use that mountpoint, which is now just a regular folder on the / disk, and put the backups there.
                    Also backup permissions are dealt with a bit differently, since the uid/gid are set with the mount options.

                    1 Reply Last reply
                    1
                    • M Offline
                      M Offline
                      msbt
                      App Dev
                      wrote on last edited by
                      #13

                      good points, thanks, gonna switch to cifs then! 🙂

                      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