graph TD
a[[joplin]]
c[WebDAV Server]
d[(local resource)]
e((rclone))
b[proxy server]
f[(WebDAV resource)]
subgraph PC
a-->|Archive|d
subgraph Debian on WSL2
e
end
e-.->d
end
e--->b
b--->c
c---f
style a fill:#008eff,color:#eee
style e fill:#e57,color:#eee
style d fill:#991,color:#eee
style b fill:#f41,color:#eee
style c fill:#8aa,color:#eee
style f fill:#991,color:#eee
$ sudo apt-get update $ sudo apt-get install rclone $ rclone config yyyy/mm/dd HH:MM:SS NOTICE: Config file "/me/home/directory/.config/rclone/rclone.conf" not found - using defaults No remotes found - make a new one n) New remote s) Set configuration password q) Quit config n/s/q> n name> joplin Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value 1 / A stackable unification remote, which can appear to merge the contents of several remotes \ "union" 2 / Alias for a existing remote \ "alias" 3 / Amazon Drive \ "amazon cloud drive" 4 / Amazon S3 Compliant Storage Providers (AWS, Ceph, Dreamhost, IBM COS, Minio) \ "s3" 5 / Backblaze B2 \ "b2" 6 / Box \ "box" 7 / Cache a remote \ "cache" 8 / Dropbox \ "dropbox" 9 / Encrypt/Decrypt a remote \ "crypt" 10 / FTP Connection \ "ftp" 11 / Google Cloud Storage (this is not Google Drive) \ "google cloud storage" 12 / Google Drive \ "drive" 13 / Hubic \ "hubic" 14 / JottaCloud \ "jottacloud" 15 / Local Disk \ "local" 16 / Microsoft Azure Blob Storage \ "azureblob" 17 / Microsoft OneDrive \ "onedrive" 18 / OpenDrive \ "opendrive" 19 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH) \ "swift" 20 / Pcloud \ "pcloud" 21 / SSH/SFTP Connection \ "sftp" 22 / Webdav \ "webdav" 23 / Yandex Disk \ "yandex" 24 / http Connection \ "http" Storage> 22 ** See help for webdav backend at: https://rclone.org/webdav/ **
URL of http host to connect to Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value 1 / Connect to example.com \ "https://example.com" url> https://{WebDAV_SERVER}/{WebDAV_PATH} Name of the Webdav site/service/software you are using Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value 1 / Nextcloud \ "nextcloud" 2 / Owncloud \ "owncloud" 3 / Sharepoint \ "sharepoint" 4 / Other site/service or software \ "other" vendor> 4 User name Enter a string value. Press Enter for the default (""). user> joplin Password. y) Yes type in my own password g) Generate random password n) No leave this optional password blank y/g/n> y Enter the password: password: ********** Confirm the password: password: ********** Bearer token instead of user/pass (eg a Macaroon) Enter a string value. Press Enter for the default (""). bearer_token> Remote config -------------------- [joplin] url = https://{WebDAV_SERVER}/{WebDAV_PATH} vendor = other user = joplin pass = *** ENCRYPTED *** -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y Current remotes:
Name Type ==== ==== joplin webdav
e) Edit existing remote n) New remote d) Delete remote r) Rename remote c) Copy remote s) Set configuration password q) Quit config e/n/d/r/c/s/q> q $ rclone ls joplin:/ 100 0123456789abcdef0123456789abcdef.md 1000 123456789abcdef0123456789abcdef0.md 10000 23456789abcdef0123456789abcdef01.md 10 3456789abcdef0123456789abcdef012.md ・ ・ ・ $ cd /mnt/c/Users/{me}/Documents/joplin $ rclone check joplin:/ ./ yyyy/mm/dd HH:MM:SS ERROR : 0123456789abcdef0123456789abcdef.md: File not in Local file system at /mnt/c/Users/{me}/Documents/joplin yyyy/mm/dd HH:MM:SS ERROR : 123456789abcdef0123456789abcdef0.md: File not in Local file system at /mnt/c/Users/{me}/Documents/joplin yyyy/mm/dd HH:MM:SS ERROR : 23456789abcdef0123456789abcdef01.md: File not in Local file system at /mnt/c/Users/{me}/Documents/joplin yyyy/mm/dd HH:MM:SS ERROR : 3456789abcdef0123456789abcdef012.md: File not in Local file system at /mnt/c/Users/{me}/Documents/joplin ・ ・ ・ yyyy/mm/dd HH:MM:SS Failed to check: NNN differences found $ rclone copy joplin:/ ./ $ ls -l -rw-r--r-- 1 {me} {me} NNNN mm月 dd HH:MM 0123456789abcdef0123456789abcdef.md -rw-r--r-- 1 {me} {me} NNNN mm月 dd HH:MM 123456789abcdef0123456789abcdef0.md -rw-r--r-- 1 {me} {me} NNNN mm月 dd HH:MM 23456789abcdef0123456789abcdef01.md -rw-r--r-- 1 {me} {me} NNNN mm月 dd HH:MM 3456789abcdef0123456789abcdef012.md ・ ・ ・
graph TD
a[[joplin]]
b[proxy server]
c[Apache2]
d1[(dav-mounted resource by davfs2)]
d2[("WebDAV Resource")]
f["Apache2"]
subgraph PC
a-->|WebDAV|f
subgraph Debian on WSL2
f
d1
end
f---|Remote Mount|d1
end
d1-->b
b--->c
subgraph WebDAV Server
c---d2
end
style a fill:#008eff,color:#eee
style d1 fill:#e57,color:#eee
style d2 fill:#991,color:#eee
style b fill:#4d1,color:#666
style c fill:#8aa,color:#eee
style f fill:#8aa,color:#eee
Alias /joplin/resource /mnt/joplin/resource <Directory /mnt/joplin/resource> Options All -Indexes +SymLinksIfOwnerMatch +FollowSymLinks AllowOverride All </Directory>
<Location /joplin/resource> DAV On Options None AuthType Basic AuthName WebDAV AuthUserFile /etc/apache2/.htpasswd <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Require user joplin </Limit> </Location>