{"id":3880,"date":"2023-08-31T10:15:12","date_gmt":"2023-08-31T09:15:12","guid":{"rendered":"https:\/\/pjsmith.me.uk\/?p=3880"},"modified":"2023-10-02T11:02:45","modified_gmt":"2023-10-02T10:02:45","slug":"setting-up-your-own-private-joplin-data-cloud-evernote-clone-replacement-with-windows-server-and-iis-webdav","status":"publish","type":"post","link":"https:\/\/pjsmith.me.uk\/index.php\/2023\/08\/setting-up-your-own-private-joplin-data-cloud-evernote-clone-replacement-with-windows-server-and-iis-webdav\/","title":{"rendered":"Setting up your own private Joplin data cloud (Evernote clone\/replacement!) with Windows Server and IIS\/Webdav"},"content":{"rendered":"\n<p>I have been a very long-term Evernote user. Sadly, the product (I think after its sale, as these things often do), went in a direction I did not like. The &#8216;legacy&#8217; client was pretty good and I wanted the functionality in it that was completely missing in the shiny new client, despite it being released for a few years now. The time was coming when I was in danger of being &#8216;retired&#8217;, the subscription plan had tripled, and they were not looking to put back features from the old client into the new.<\/p>\n\n\n\n<p>I&#8217;d looked for a while for a replacement. I need to sync multiple Windows and Android devices. I have well over 5 GB of notes. Maybe 10 years of docs or more. I have a nice workflow where I just feed documents into a ScanSnap scanner and they scan directly into Evernote as PDFs. I wanted to replicate this. I came across Joplin in my search and found out it had a WedbDav server-side option for syncing\/storing data. It&#8217;s open source and seems to do most of what I want. It will import from Evernote exported folders, too. Anyway &#8211; I decided to try and set it up. It was a pig and it took me 6 hours to figure out why it would not work. There seemed to be no setup notes for Windows &amp; WebDAV. I am sharing these notes in the hope they might help someone else.<\/p>\n\n\n\n<p>So, this is for a private data that cloud using your own Windows machine as the data\/sync server (I am using a Windows server, but you could use Windows 10\/11 too I think)<\/p>\n\n\n\n<p>Firstly, install the &#8216;Webdav&#8217; functionality from the Add\/Remove features option. It is not typically installed by default when you install IIS. Obviously, I am assuming you already have IIS installed. If not, you&#8217;ll need all that, too! There are plenty of tutorials for that on the web elsewhere. I am really just looking to share the Joplin\/Webdav\/IIS gotcha issues here.<\/p>\n\n\n\n<p>I suggest creating a new IIS website once you have Webdav installed. I called mine webdav.whatever.com. This is so I could easily migrate it away if I wanted to another server\/service, but you could set this up in a virtual folder off another site also if you prefer. Be aware that all your data will be stored in the root folder of this website &#8211; Make sure you have enough storage and that it is being backed up!<\/p>\n\n\n\n<p>I have SSL enabled on my sites. If configuring a separate site like I did, you probably want to disable anonymous authentication and enable basic auth, per the below. I suggest doing this for the virtual folder if you went that route, too.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"479\" height=\"191\" data-attachment-id=\"3881\" data-permalink=\"https:\/\/pjsmith.me.uk\/index.php\/2023\/08\/setting-up-your-own-private-joplin-data-cloud-evernote-clone-replacement-with-windows-server-and-iis-webdav\/image-13\/\" data-orig-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image.png\" data-orig-size=\"479,191\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image.png\" src=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image.png\" alt=\"\" class=\"wp-image-3881\" srcset=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image.png 479w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-300x120.png 300w\" sizes=\"auto, (max-width: 479px) 100vw, 479px\" \/><\/a><\/figure>\n\n\n\n<p>Set your Webdav auth rules to include only your login(s) of choice<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"204\" data-attachment-id=\"3882\" data-permalink=\"https:\/\/pjsmith.me.uk\/index.php\/2023\/08\/setting-up-your-own-private-joplin-data-cloud-evernote-clone-replacement-with-windows-server-and-iis-webdav\/image-1-6\/\" data-orig-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-1.png\" data-orig-size=\"1182,236\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-1-1024x204.png\" src=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-1-1024x204.png\" alt=\"\" class=\"wp-image-3882\" srcset=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-1-1024x204.png 1024w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-1-300x60.png 300w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-1-768x153.png 768w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-1-600x120.png 600w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-1.png 1182w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Now, I found that because of the way the Joplin client works, and the way it requests files from WebDav\/IIS, it will not actually function, at all! I eventually tracked down the issue and found it could be resolved by adding a MIME type in IIS for the Joplin data files. Add the following for .md files<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"685\" height=\"476\" data-attachment-id=\"3883\" data-permalink=\"https:\/\/pjsmith.me.uk\/index.php\/2023\/08\/setting-up-your-own-private-joplin-data-cloud-evernote-clone-replacement-with-windows-server-and-iis-webdav\/image-2-3\/\" data-orig-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-2.png\" data-orig-size=\"685,476\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-2.png\" src=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-2.png\" alt=\"\" class=\"wp-image-3883\" srcset=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-2.png 685w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-2-300x208.png 300w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-2-600x417.png 600w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/a><\/figure>\n\n\n\n<p>Now your Joplin client will actually be able to download the data it uploaded! Yay!<\/p>\n\n\n\n<p><em>[EDIT 2023.10.2] I found that on remote clients if attachments were set to download only on demand, they would not download. This is again due to a missing mime type in IIS. Joblin actually uses no file extension for the data files, so they are just &#8216;name.&#8217;. IIS does not know how to serve these. Add another MIME type, per the above, for the &#8216;.&#8217; extension. This fixed it for me.<\/em><\/p>\n\n\n\n<p>But, there is another issue. Some of the files will not download due to data lengths. To fix this, you need to make the following 2 tweaks to your IIS site configuration via the configuration editor<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"725\" height=\"307\" data-attachment-id=\"3887\" data-permalink=\"https:\/\/pjsmith.me.uk\/index.php\/2023\/08\/setting-up-your-own-private-joplin-data-cloud-evernote-clone-replacement-with-windows-server-and-iis-webdav\/image-6-2\/\" data-orig-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-6.png\" data-orig-size=\"725,307\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-6\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-6.png\" src=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-6.png\" alt=\"\" class=\"wp-image-3887\" srcset=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-6.png 725w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-6-300x127.png 300w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-6-600x254.png 600w\" sizes=\"auto, (max-width: 725px) 100vw, 725px\" \/><\/a><\/figure>\n\n\n\n<p>and<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"561\" height=\"451\" data-attachment-id=\"3886\" data-permalink=\"https:\/\/pjsmith.me.uk\/index.php\/2023\/08\/setting-up-your-own-private-joplin-data-cloud-evernote-clone-replacement-with-windows-server-and-iis-webdav\/image-5-2\/\" data-orig-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-5.png\" data-orig-size=\"561,451\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-5\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-5.png\" src=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-5.png\" alt=\"\" class=\"wp-image-3886\" srcset=\"https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-5.png 561w, https:\/\/pjsmith.me.uk\/wp-content\/uploads\/2023\/08\/image-5-300x241.png 300w\" sizes=\"auto, (max-width: 561px) 100vw, 561px\" \/><\/a><\/figure>\n\n\n\n<p>You may need to recycle your application pool to get these changes to take effect.<\/p>\n\n\n\n<p>Once done, set up your clients to sync to your new Webdav target, and enjoy your free, self-hosted Evernote replacement! I suggest also enabling end-to-end encryption on the clients. This way, your data is stored encrypted on the server. If that ever gets compromised, or accessed against your wishes, it&#8217;s still not easy to do anything with what they have access to (it&#8217;s encrypted). Do this before you start uploading data as you want the encryption process to be happening from the beginning.<\/p>\n\n\n\n<p>You also might want to check out the plugins available for Joplin. I used the &#8216;HotFolder&#8217; one that enabled me to replace the direct scan into Evernote functionality 100% (it monitors a folder for the scanned docs and imports them into the currently selected folder in the Joplin client). I also added the &#8216;Favourites&#8217; plugin as I had used this functionality on Everynote too. <\/p>\n\n\n\n<p>As I mentioned, it took me some time to figure this out. There were zero notes I could find shared either via the Joplin Forums (except mine!) or elsewhere in getting this all set up. I would suggest this severely restricts the adoption of such a setup. This is a pity, as it seems to do the job so far!  If I saved you an entire Sunday morning as it did me (it took me 6 hours to get this figured out!), and you want to say thank you, please do. You could even <a href=\"https:\/\/ko-fi.com\/pjsmith\">buy me a coffee<\/a> if you are really appreciative! <\/p>\n\n\n\n<p>Good luck, and enjoy Joplin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Replacing subscription Evernote with the Open Source Joplin client and your own IIS\/WebDAV hosted data sync server<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[5],"tags":[22,105,104,106,24],"class_list":{"0":"post-3880","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-tech","7":"tag-evernote","8":"tag-iis","9":"tag-joplin","10":"tag-webdav","11":"tag-windows"},"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/3880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=3880"}],"version-history":[{"count":0,"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/3880\/revisions"}],"wp:attachment":[{"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=3880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=3880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=3880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}