borg mount share with samba

    • OMV 4.x
    • borg mount share with samba

      Hi,

      we male backups via borg plugin. Now we try to mount a borg repo.

      - We created a zfs filesystem, on top a shared folder.
      - Then we mounted the borg repo into the shared folder (the mount folder has to be there)
      - Our expectation was that we can share this mounted folder with samba to a user or a group
      - For that purpose we tripple checked al permissions but the mounted borg repo is not visible in the samba share

      Anyone has experience with borg, mounts and samba?
    • max.merkel wrote:

      we male backups via borg plugin.
      There is no Borg plugin! Borg is installed from the cli apt-get install borgbackup.

      So you have used the zfs plugin? and then created a shared folder, then pointed the borg repo to that shared folder as per the borg install borg init --encryption=repokey /path/to/repo the important part there is the path statement, if that is incorrect then it's not going to work.
      Raid is not a backup! Would you go skydiving without a parachute?
    • max.merkel wrote:

      Thank you for your message!

      There is a plugin for borg: github.com/OpenMediaVault-Plug…openmediavault-borgbackup (Arrakis-Tesing)

      It works quite well, just the mount option seems to be not very well integrated so far. It is like in the first post explained and everything done from the GUI.

      Greetings!
      That would explain it, being the testing repo, but the share would be under /srv/dev-disk-by-id etc that is where your share would be located if you're using that as the mount point for borg. If I tag @ryecoaaron for you he should be able to assist.
      Raid is not a backup! Would you go skydiving without a parachute?
    • geaves wrote:

      max.merkel wrote:

      Thank you for your message!

      There is a plugin for borg: github.com/OpenMediaVault-Plug…openmediavault-borgbackup (Arrakis-Tesing)

      It works quite well, just the mount option seems to be not very well integrated so far. It is like in the first post explained and everything done from the GUI.

      Greetings!
      That would explain it, being the testing repo, but the share would be under /srv/dev-disk-by-id etc that is where your share would be located if you're using that as the mount point for borg. If I tag @ryecoaaron for you he should be able to assist.
      Thank you! The share is a zfs Filesystem tank/borgbackup/...
      Great if @ryecoaaron could have a look at this. I don't want to rule out that it is a user error :) But at least then the GUI is not self explaining enough.
    • max.merkel wrote:

      Our expectation was that we can share this mounted folder with samba to a user or a group
      When mounting a borg repo, it is mounted on a path. If this path is shared via samba, it should work. Unfortunately, it is read only and the permissions inside the repo could be wrong. So, there is no way to fix this.
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!

      Post by max.merkel ().

      This post was deleted by ryecoaaron: dupe ().
    • ryecoaaron wrote:

      max.merkel wrote:

      Our expectation was that we can share this mounted folder with samba to a user or a group
      When mounting a borg repo, it is mounted on a path. If this path is shared via samba, it should work. Unfortunately, it is read only and the permissions inside the repo could be wrong. So, there is no way to fix this.
      Yes, if we do this via cli the mount works. Via GUI there has to be already a folder with the name of the borg repo inside the shared folder. Then the mount via GUI works. This is a bit complicated, because you have to create a folder with the name of the borg repo before to get it mounted through the GUI.

      Now we want to share the mounted borg repo with samba.

      Once it is mounted (in a folder of a samba share) samba is not showing up the folder with the borg repo on the samba client. If it is unmounted the share shows the (empty) folder which we have created to get it mounted.

      To sum it up :)

      1. borg repo mount should create the folder first where the repo is going to be mounted
      2. For some reasons a borg mounted folder is not showing up in a samba share. The folder name and its content is plain not visible



      I hope i have expressed myself clearly :) Would love to see this feature working well and would support investigating further.
    • max.merkel wrote:

      borg repo mount should create the folder first where the repo is going to be mounted
      This must be a change of behavior in a newer version of the borg package. Should be easy to fix.

      max.merkel wrote:

      For some reasons a borg mounted folder is not showing up in a samba share. The folder name and its content is plain not visible
      Still seems like a permissions issue but I will look into it.
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Users Online 1

      1 Guest