New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WebDAV server as alternative for fuse #485

Open
askeron opened this Issue Mar 13, 2016 · 10 comments

Comments

Projects
None yet
5 participants
@askeron

askeron commented Mar 13, 2016

Original issue title: Add WebDAV server as alternative for fuse

Important: This is not about an WebDAV Backend.

I think the idea of using fuse to examine the backuped snapshots is great, but as some OS do not support fuse and somebody might not have enough rights to use fuse, it would be great to have an alternative.
My idea was to add a command to restic that instead of mounting the snapshots via fuse opens a local WebDAV server. As all major OS have a options to mount a WebDAV server, everybody would be able to mount the snapshots.

As I guess that it is easy to find a WebDAV serverlib for Go and you would use the same directory structure the fuse mount, it should not be too complicated to add this feature.

@fd0

This comment has been minimized.

Show comment
Hide comment
@fd0

fd0 Mar 14, 2016

Member

Good idea, thanks for bringing it up. Before implementing this, we should investigate if it's really necessary to implement WebDAV (a rather complicated protocol), as opposed to e.g. ftp or plain HTTP.

Member

fd0 commented Mar 14, 2016

Good idea, thanks for bringing it up. Before implementing this, we should investigate if it's really necessary to implement WebDAV (a rather complicated protocol), as opposed to e.g. ftp or plain HTTP.

@askeron

This comment has been minimized.

Show comment
Hide comment
@askeron

askeron Mar 16, 2016

Thanks. I also thought about HTTP and FTP, but the advantage of WebDAV would be, that you can mount it easily.

askeron commented Mar 16, 2016

Thanks. I also thought about HTTP and FTP, but the advantage of WebDAV would be, that you can mount it easily.

@fd0

This comment has been minimized.

Show comment
Hide comment
@fd0

fd0 Mar 16, 2016

Member

You can easily mount an ftp server on a recent Windows: http://www.thewindowsclub.com/map-an-ftp-drive-windows

Member

fd0 commented Mar 16, 2016

You can easily mount an ftp server on a recent Windows: http://www.thewindowsclub.com/map-an-ftp-drive-windows

@askeron

This comment has been minimized.

Show comment
Hide comment
@askeron

askeron Mar 16, 2016

Oh cool, I did not know that. Then a FTP server is the better solution.

askeron commented Mar 16, 2016

Oh cool, I did not know that. Then a FTP server is the better solution.

@askeron askeron changed the title from Add WebDAV server as alternative for fuse to Add FTP server as alternative for fuse Mar 16, 2016

@TobiX

This comment has been minimized.

Show comment
Hide comment
@TobiX

TobiX Mar 28, 2016

Just my humble €0.02: Please don't use FTP. It's not a simple protocol. It's an old, legacy protocol that needs to die. Even if this is only for localhost connections - FTP doesn't even define how directory listings should look. And look, there is a nice WebDAV server library for Go right here: https://godoc.org/golang.org/x/net/webdav - Using WebDAV instead of plain HTTP gives instant integration into most file managers: Windows Explorer, Apple Finder, KDE, GNOME.

TobiX commented Mar 28, 2016

Just my humble €0.02: Please don't use FTP. It's not a simple protocol. It's an old, legacy protocol that needs to die. Even if this is only for localhost connections - FTP doesn't even define how directory listings should look. And look, there is a nice WebDAV server library for Go right here: https://godoc.org/golang.org/x/net/webdav - Using WebDAV instead of plain HTTP gives instant integration into most file managers: Windows Explorer, Apple Finder, KDE, GNOME.

@fd0

This comment has been minimized.

Show comment
Hide comment
@fd0

fd0 Mar 28, 2016

Member

interesting, thanks for the comment

Member

fd0 commented Mar 28, 2016

interesting, thanks for the comment

@fd0 fd0 closed this Mar 28, 2016

@fd0

This comment has been minimized.

Show comment
Hide comment
@fd0

fd0 Mar 28, 2016

Member

argh, wrong button, sorry.

Member

fd0 commented Mar 28, 2016

argh, wrong button, sorry.

@fd0 fd0 reopened this Mar 28, 2016

@stv0g

This comment has been minimized.

Show comment
Hide comment
@stv0g

stv0g Apr 3, 2016

I don't get the point.
Which major OS doesn't support FUSE?

BSDs, OS X, Linux, Windows... all of them have a FUSE driver..

(Windows for example https://github.com/dokan-dev/dokany)

stv0g commented Apr 3, 2016

I don't get the point.
Which major OS doesn't support FUSE?

BSDs, OS X, Linux, Windows... all of them have a FUSE driver..

(Windows for example https://github.com/dokan-dev/dokany)

@fd0

This comment has been minimized.

Show comment
Hide comment
@fd0

fd0 Apr 3, 2016

Member

Dokan is not the same as FUSE, it's a compatibility layer around libfuse (which we do not use), I've explained it here: #361 (comment)

Member

fd0 commented Apr 3, 2016

Dokan is not the same as FUSE, it's a compatibility layer around libfuse (which we do not use), I've explained it here: #361 (comment)

@wrouesnel

This comment has been minimized.

Show comment
Hide comment
@wrouesnel

wrouesnel Jul 30, 2016

WebDAV on Windows is finicky but it does work (in a way which is compatible with everyone else too). More important is that WebDAV gives a super-easy way to allow users to restore single files from snapshots with low setup overhead (i.e. restic web --port :8080 and then collect the repository password per-session on a local network).

wrouesnel commented Jul 30, 2016

WebDAV on Windows is finicky but it does work (in a way which is compatible with everyone else too). More important is that WebDAV gives a super-easy way to allow users to restore single files from snapshots with low setup overhead (i.e. restic web --port :8080 and then collect the repository password per-session on a local network).

@fd0 fd0 changed the title from Add FTP server as alternative for fuse to Add WebDAV server as alternative for fuse Sep 29, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment