Leveraging rclone to save with cloud providers

I had an epiphany today, and you know how painful that can be.

I’m already using rclone to serve up local files, which in turn get served up by tailscale. There are many cloud services out there, most of them with at least some level of free service. But none of them can be used directly to save TiddlyWiki files because they either don’t offer webdav or they offer a type of webdav that doesn’t allow true interaction without an app.

But you can use rclone to serve up files from those services, and (with some caveats) they will save back with the TW webdav. The advantage of this approach over say, TiddlyHost, is that you can also store images and other resources in a relative directory, and view them inside your TW file. You can also mount the service as a drive, for when you want to manage the drive like a local directory.

For each service that you want to set up, you run the rclone config command

rclone config

Then you step through the questions it asks to create a configuration that can then be used like a virtual connection to that cloud drive.

For example, Koofr is a service that offers 10 gig of space. The configuration is straight-forward. In my example, I created a configuration koofr. The command to serve up the koofr system is:

rclone serve webdav koofr:/ --addr :8090 --vfs-cache-mode full

Now you can go in your browser and browse your files at 127.0.0.1:8090.

The flag --vfs-cache-mode helps system cache changes, which makes a big difference in the time it takes to save.

With koofr, but none of the other services, I had to save the TW file with an “.aspx” extension. I don’t know why.

I also tried google drive, onedrive, and pcloud. They all worked, but I was only testing with an “empty” file. So not sure how it will all go with bigger files.

Google drive was the hardest to set up. There is a long page of instructions at the rclone site on how to do it. But I had already done part of the set up 4 years ago, so I was good to go. Hopefully it works for people starting fresh.

So, this is all experimental, but interesting. Google drive didn’t want to serve up any files by Microsoft. This might be a google API thing. I didn’t care about those, but it was worrisome. OneDrive doesn’t seem to be able (on rclone) to navigate directories with spaces in their names, so that might limit what directories you can use.

I didn’t get around to saving on dropbox. Not sure if I still have an account.

Something to look into some other time is if configurations can be exported and then used in RCX on Android.

So anyway, I thought people might find this interesting. Use with caution, obviously.