Maybe I state the obvious here but anyway:

Tonight I found a super comfi way to browse and restore data from Borg repositories. In vorta you can add any existing borg repository and mount the containing backups in a very functional GUI. Until now I somehow assumed you could only deal with backups created in vorta which is not true.

For context let me explain why I find that so useful: I am using a wonderful Borg / Borgmatic container from the borgmatic collective. It works super reliable. But for restoring files you have to mount the backup in the container and deal with the files inside the container. This can be difficult i.e. when looking for a specific file in a folder with a lot of files (like a foto collection where you accidentally deleted one file).

If any Borg users are out there: I would be interested what your workflows look like.

  • witten@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    ·
    edit-2
    8 months ago

    borgmatic dev here. First of all, if Vorta is working well for you to recover files, then by all means use Vorta! Right tool for the job and all. Having said that, a couple of thoughts on using borgmatic in Docker and recovering files:

    borgmatic has a search feature that makes finding a particular file in an archive or across archives pretty easy. So that might be step one in restoring an accidentally deleted file.

    Once you’ve found the file and archive to restore, you can either use borgmatic extract or borgmatic mount. With extract, you copy one or more files out of a backup archives. The challenge though is that with borgmatic in a container, by default there’s not an easy way to copy those files into their original locations. However I think the “fix” is to mount your source volumes as read-write instead of (the documented) read-only. That way you can easily copy extracted files back to where they belong.

    As for borgmatic mount, you’ve got a similar challenge and fix. You can presumably mount backup archives (or a whole repository) within the container, but then you need to copy your recovered files out of that mount into their original source volumes. So that probably also means those volumes need to be mounted read-write.

    Let me know if you have any questions!

      • raldone01@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 months ago

        You could always sftp mount the repo if you cant install borg but have sftp support. Probably won’t be as efficient though.

      • witten@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 months ago

        Nope! Borg always requires Borg on the remote side. It’s Borg’s biggest strength and weakness versus competing backup systems IMO. Strength, because it can do pretty smart stuff with its own code running on both sides. Weakness, because it means it doesn’t work natively with cloud object storage like S3. It’s a tradeoff like anything else.

  • bloopernova@programming.dev
    link
    fedilink
    English
    arrow-up
    14
    ·
    8 months ago

    I used Borg to backup a bunch of dev servers a few years ago, about 5TB from several dozen hosts, over several years. It worked flawlessly, and its dedupe is downright magical.

    The restore workflow, where you just mount a snapshot and copy what you need, is fantastic. Very straightforward and reliable.

  • narc0tic_bird@lemm.ee
    link
    fedilink
    English
    arrow-up
    13
    ·
    8 months ago

    Nice frontend, but honestly the Borg CLI and borgmatic config is so easy and straightforward to use, you shouldn’t need any GUI.

    May I ask why you are running Borg inside a container? You could just run it directly on the host and that would’ve solved your problem it seems.

    • Carunga@feddit.deOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      8 months ago

      Borg is running on a headless server. Everything is dockerized, so I did the same with Borg. Advantages are that the setup is easy to setup, backup the config and move it to a different server. At first I did not realize that the mount of the backup only exists in the container and that this is making things a little harder.

        • Carunga@feddit.deOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 months ago

          This was the first idea. I cannot explain very well why this does not work. But I think the issue is that the borg mount magic lives inside the container so the filesystem cannot be seen from the host. You can mount an empty directory and copy the files you want to access from the host into it. Problem with that is that you are stuck with the tooling provided by the container.

  • ebits21@lemmy.ca
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    8 months ago

    Yeah it’s just a frontend for Borg (which is great).

    I just mount and browse in Nautilus. I have a mount script aliased to open-backup.

    • Carunga@feddit.deOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      8 months ago

      That does make sense. Could work for me as well. I was just not aware I can mount a repository from a remote host that was created by a different Borg instance on another server and just browse the files like they were local on my notebook.