Hi guys!

I’m trying to create a WebDAV server that shares a NFS mount from my NAS. In short, I’m trying to create/share a backup folder in my NAS so my Graphene phone can run the backup.

How can I do this? All the guides mention about sharing /var/www/webdav and chrooting it. How can I share my own folder? Does it need to be /var/www/webdav? Can I share something else instead? Should I just link my NAS mount to /var/www/webdav?

Thanks!

  • MangoPenguin
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    16 days ago

    It can be anything you want.

    How you change it depends on the specific server you’re using, I use SFTPGo for a webdav server and when I create a new user it just asks where the data should go.

  • Strit@lemmy.linuxuserspace.show
    link
    fedilink
    English
    arrow-up
    2
    ·
    16 days ago

    You could bind mount the folder you want it to go to, into the /var/www/webdav/ folder.

    mount --bind foo foo

            The  bind  mount  call  attaches only (part of) a single filesystem, not possible submounts. The entire
           file hierarchy including submounts is attached a second place using