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

    Borg backup to local/attached and S3 Compatible Object Storage

    Discuss
    7
    15
    2869
    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.
    • marcusquinn
      marcusquinn last edited by marcusquinn

      How about a multi-backup option:

      1. Borg backup to local/attached storage
      2. Rsync/Tarball to S3

      https://borgbackup.readthedocs.io

      And some random links form Googling the same:

      https://opensource.com/article/17/10/backing-your-machines-borg
      https://github.com/borgbackup/borg/issues/102
      https://habd.as/post/borg-backup-minio-scaleway/
      https://github.com/luispabon/borg-s3-home-backup

      We're not here for a long time - but we are here for a good time :)
      Jersey/UK
      Work & Ecommerce Advice: https://brandlight.org
      Personal & Software Tips: https://marcusquinn.com

      1 Reply Last reply Reply Quote 2
      • nebulon
        nebulon Staff last edited by

        Some historical background as well https://git.cloudron.io/cloudron/box/-/issues/238
        We may reevaluate supporting it.

        jdaviescoates 1 Reply Last reply Reply Quote 1
        • jdaviescoates
          jdaviescoates @nebulon last edited by

          @nebulon said in Borg backup to local/attached and S3 Compatible Object Storage:

          Some historical background as well https://git.cloudron.io/cloudron/box/-/issues/238
          We may reevaluate supporting it.

          That link is a 404 (even after logging in)

          I use Cloudron with Gandi & Hetzner

          robi 1 Reply Last reply Reply Quote 0
          • robi
            robi @jdaviescoates last edited by

            @jdaviescoates @nebulon maybe we don't have access to issues

            Life of Advanced Technology

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

              @jdaviescoates said in Borg backup to local/attached and S3 Compatible Object Storage:

              That link is a 404 (even after logging in)

              Oh, that might be my bad. I had changed the GitLab Issues to 'Only Project Members' (because we got some low effort issue spam). I thought that made the issue tracker readonly for others, but looks like GitLab has no option for this. I changed the permissions back now.

              jdaviescoates 1 Reply Last reply Reply Quote 1
              • jdaviescoates
                jdaviescoates @girish last edited by

                @girish said in Borg backup to local/attached and S3 Compatible Object Storage:

                I changed the permissions back now.

                Thanks.

                I can see now that the most recent post there was from yourself 2 years ago saying:

                We will probably not support this since nobody in the team has expertise on borg. But we now have rsync style backups.

                That's a shame.

                Would it in theory be possible to just install it on my VPS where Cloudron is installed or what that be playing with fire? (as it is I've never touched it aside from initially installing Cloudron)

                I use Cloudron with Gandi & Hetzner

                jdaviescoates 1 Reply Last reply Reply Quote 0
                • jdaviescoates
                  jdaviescoates @jdaviescoates last edited by jdaviescoates

                  Any plans for per-app backup configuration so we could have e.g. rsync just for Nextcloud or other apps where we've got loads of data? (I remember proposing or upvoting something about this before)

                  Edit: it was proposed for inclusion in 4.5 https://forum.cloudron.io/post/5586

                  More details here:
                  https://forum.cloudron.io/post/5936

                  But then bumped to maybe in 5.2:
                  https://forum.cloudron.io/post/7083

                  What's the current state of play?

                  Thanks! 🙂

                  I use Cloudron with Gandi & Hetzner

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

                    Borg support is quite unlikely and low priority (mostly because we are not experts on borg and don't want to support a system we don't understand). As for per app backup format, we can re-evaluate it after 6.0.

                    jdaviescoates robi 2 Replies Last reply Reply Quote 2
                    • jdaviescoates
                      jdaviescoates @girish last edited by

                      @girish fair enough, thanks for the update 🙂

                      I use Cloudron with Gandi & Hetzner

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

                        @girish If there were a secondary backup target feature, that would allow for different backup experimentation.

                        Life of Advanced Technology

                        1 Reply Last reply Reply Quote 0
                        • necrevistonnezr
                          necrevistonnezr last edited by

                          Off-topic but maybe interesting for some: There's a pretty desktop client for borg backup: https://github.com/borgbase/vorta and/or https://vorta.borgbase.com/

                          Vorta is a backup client for macOS and Linux desktops. It integrates the mighty BorgBackup with your desktop environment to protect your data from disk failure, ransomware and theft.

                          • Encrypted, deduplicated and compressed backups using Borg as backend.
                          • No vendor lock-in – back up to local drives, your own server or BorgBase, a hosting service for Borg backups.
                          • Open source – free to use, modify, improve and audit.
                          • Flexible profiles to group source folders, backup destinations and schedules.
                          • One place to view all point-in-time archives and restore individual files.

                          Vorta should work on all platforms that support Qt and Borg. This includes macOS, Ubuntu, Debian, Fedora, Arch Linux and many others. Windows is currently not fully supported by Borg, but this may change in the future.

                          vorta-screencast-6.gif

                          marcusquinn 1 Reply Last reply Reply Quote 4
                          • marcusquinn
                            marcusquinn @necrevistonnezr last edited by

                            @necrevistonnezr Very nice! Looks like a serious competitor to Backblaze, with pricing about the same up to 1TB if it's just for one computer. Adding this to my to-do list to give it a good trial and likely sign-up.

                            We're not here for a long time - but we are here for a good time :)
                            Jersey/UK
                            Work & Ecommerce Advice: https://brandlight.org
                            Personal & Software Tips: https://marcusquinn.com

                            1 Reply Last reply Reply Quote 1
                            • D
                              dswd last edited by

                              Since I opened that issue back then, I want to mention that in the meantime I developed my own backup solution which I think is better than Borg. Right now I am 90% done with version 2 of it and I will definitively use it to backup my Cloudron instance.

                              robi necrevistonnezr 2 Replies Last reply Reply Quote 3
                              • robi
                                robi @dswd last edited by

                                @dswd start another thread and tell us more.

                                Life of Advanced Technology

                                1 Reply Last reply Reply Quote 2
                                • necrevistonnezr
                                  necrevistonnezr @dswd last edited by necrevistonnezr

                                  @dswd said in Borg backup to local/attached and S3 Compatible Object Storage:

                                  Since I opened that issue back then, I want to mention that in the meantime I developed my own backup solution which I think is better than Borg. Right now I am 90% done with version 2 of it and I will definitively use it to backup my Cloudron instance.

                                  As mentioned before, I use the built-in daily unencrypted Backup to local filesystem using the rsync backend and the "3 daily, 4 weekly, 6 monthly" schedule.

                                  These daily encrypted backups of the "snapshot" folder are backed up via restic to OneDrive (which is in my O365 subscription) with the same schedule as above.

                                  This gives me mountable(!) remote point-in-time backups.

                                  What I use for backing up (daily):

                                  #!/bin/bash
                                  d=$(date +%Y-%m-%d)
                                  if pidof -o %PPID -x “$0”; then
                                  echo “$(date “+%d.%m.%Y %T”) Exit, already running.”
                                  exit 1
                                  fi
                                  restic -r rclone:onedrive:restic backup /media/Cloudron/snapshot/ -p=resticpw
                                  restic -r rclone:onedrive:restic forget --keep-monthly 6 --keep-weekly 4 --keep-daily 7 -p=resticpw
                                  

                                  What I use for pruning (once a month):

                                  #!/bin/bash
                                  d=$(date +%Y-%m-%d)
                                  if pidof -o %PPID -x “$0”; then
                                  echo “$(date “+%d.%m.%Y %T”) Exit, already running.”
                                  exit 1
                                  fi
                                  restic -r rclone:onedrive:restic prune -p=resticpw
                                  
                                  1 Reply Last reply Reply Quote 6
                                  • First post
                                    Last post
                                  Powered by NodeBB