WebDAV for saving single file wiki

0% … If I load the page from nodejs, I do get a 0.1% CPU usage for a very short time. … BUT I do have a relatively beefy PC. Core i9 with 4.5 GHz and 32GB RAM …

I think the most resource intensive element is nodejs itself. …

As Saq wrote, the easiest way will be a nginx setup with WebDav enabled. As we did test the PUT saver I did use a predefined docker container and it worked like a charm. … At least for some short testing. …

For a production setup, I would read a bit more docs.

Perhaps you are thinking of the options outlined here?
https://groups.google.com/g/tiddlywiki/c/I_mc1Jycfhc/m/9rdz3328CQAJ

1 Like

You mean this one: GitHub - hacdias/webdav: Simple Go WebDAV server. from https://groups.google.com/g/tiddlywiki/c/I_mc1Jycfhc/m/fpDmAEpCBwAJ ?

Here is another one written in Go:

I set up ISS/Webdav and it seemed fine, But have not used it now for a few years.

I use Bob.exe for multi-user, I have tiddly Desktop for some legacy but my main activity is using Timimi on FF, Chrome and Edge.

I have delivered to a production environment on top of SharePoint, where I use the check in and out facility for serial edits, in this case I have made a passing use of WebDav to load a wiki into SharePoint with windows explorer.

Rather than WebDav or Node I am inclined to spin up a local server and host independent wikis on top of php and tw-receiver, once operating its trivial to deploy to abundant cpanel hosts.

What ever the platform to allow serial edits and locks on single file tiddlywikis is the most important gap in my mind, Perhaps the file upload plugin could be re-engineered to provide a lock mechaisium to allow serial editing only,. on top of all servers including webdav but also for Timimi users, even on node/bob although somewhat unnecessary.

I’ve been using WebDAV for several months now and it works great for me.

I’m using the rclone utility found at rclone dot org. It is a swiss army knife of syncing local and cloud storage files. It is packed with features (not always a good thing). I like that it is a single file executable that I can just download and run on many platforms including windows, linux and mac.

The rclone serve webdav command has lots of options, but running it can be as simple as:

rclone serve webdav some_directory_containing_tiddlywiki_files

Then point your browser at localhost:8080 and you will see a list of files in that directory. The brilliant code in the webdav saver doesn’t need any special configuration in your tiddlywiki file. It will automatically detect webdav is supported by the server you loaded from and save it back.

With any single file solution, I highly recommend a reliable backup solution. If any blip happens during saving, the entire file can be corrupted.

For that I’m using entr(1) (not available on windows) to trigger an automatic, local git commit whenever my wiki file changes.

I’m using just a single wiki currently (ftlist.html below). I’m using something similar to this crude shell script:

#!/bin/bash

# Launch webdav server as background process
rclone serve webdav  ~/Dropbox/ftlist &

# Watch for changes, display the changes, and commit the changes to git
cd ~/Dropbox/ftlist
echo ftlist.html | entr -s '
  git --no-pager diff -U1 .
  git commit -m "$(date +%Y-%m-%d) tw ftlist autocommit" ftlist.html
'
6 Likes

That is really cool! I already use Rclone on both Windows and Linux. But I didn’t know that it could serve webdav. That’s the kind of light-weight solution that is needed. Most of the other solutions start with “Install docker”, or “Install Apache” and then have a half dozen configurations files, often with no documentation, incomplete documentation, or conflicting documentation.

Woah! Thank you @btheado ! Like @Mark_S I use rclone all the time but never knew about this feature.

1 Like

As discussed in that post, I have added a short tutorial using WebDAV on windows in TW-Scripts!
one reason for me to use it is using TWs on a small home network and also access to my local libraries like kookma library, wikilabs, rlinks, and other libraries stored on my local computer!

I think for private use WebDAV is really cool!

Adding a link here to @Mohammad’s tutorial for convenience:

Easy Local Saving for TiddlyWiki with WebDav

1 Like

@saqimtiaz

I saw you have starred GitHub - dom111/webdav-js: A simple WebDAV client written in JS for use as a bookmarklet, or integ
Can this be used directly for TW also? or it need some JS coding?

@Mohammad It is not meant for TW.

While the “WebDAV” part is somewhat not obvious, you might consider including the SharePoint/ASPX saving option as if you have it available is absolutely the simplest.

  1. Download empty.html
  2. Save it as empty.aspx
  3. Copy it to a SharePoint/OneDrive for Business sync’d library
  4. Open it online

That’s it, no further configuration necessary - works on desktop and syncs with mobile where it works great! I know the subset of users with OneDrive for Business/SharePoint might be small (or at least not vocal here - me and @TW_Tones anyways). I will acknowledge that as we’ve discussed before, I have heard that some configurations of SharePoint have had the WebDAV piece disabled, so maybe it’s risky to talk about too much, and have users in that situation get frustrated…

1 Like

Great stuff. @stobot’s SharePoint/ASPX process is really incredibly cool, and should be more widely known. I suppose generally it would be useful to update tiddlywiki.com with some of this stuff.

It’s ok if I add this to “Saving via WebDav” ? It’s open source info, etc. ?

TiddlyWiki.com says

Free Hosting

Several WebDAV hosting services tested (box.com, swissdisk.com) don’t support accessing HTML files via a webbrowser, so they won’t work with TiddlyWiki. However, The GMX mediacenter (www.gmx.net) has been reported as working with WebDAV with a free account.

Both box.com and swissdisk.com have a line through them. I don’t know what this means. Does it mean that box and swissdisk work? Have been tested but don’t work? Haven’t been tested? Do they need to be mentioned at all?

More importantly, are there any actual free servers that still work? I’m thinking only the line about gmx.net is worth retaining. If you were to list all the services that don’t work, I imagine it would be several pages long.

Edited to add strikeout .

Edit #2 to ask additional question:

The existing notes at TiddlyWiki.com say SharePoint/OneDrive on Windows. Does it actually work on Mac as well?

1 Like

Good question @Mark_S, unfortunately I don’t have a way to test, I only have access to windows-based machines.

Edit: Might be worth mentioning… once there I can edit completely normally from my phone as well (Android based)

@stobot it might be useful to copy this / make a How To wiki post that specifically talks about SharePoint + TiddlyWiki

1 Like

I edited the wiki post and attempted to clarify client vs. server platform. I moved the SharePoint bullet point to the Windows section, since SharePoint itself runs on Windows. But as with all the WebDAV servers, it doesn’t likely matter which platform you are connecting from.

1 Like

@btheado FYI: SharePoint can run in any browser on any platform so it is not bound to windows at all.

The server may be installed on a Windows server but most people are now starting to use the cloud hosted Office 365 Platform and its SharePoint there in.

The Office 365 platform, Rather than SharePoint, is I believe actually what can serve content on top of WebDav protocols. Previously this was limited to Internet Explorer, so I am not sure what the status is now, I presume “MS edge”.

Also One Drive has clients for other OS’s as well.

1 Like