-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[request] specify directory to save notes #61
Comments
The answer to this might to enable syncing to a local directory - it's a feature that I've implemented for testing, but not enabled in the main apps as I wrongly thought nobody would need it. So please check again in a few days once it's enabled. |
Feature desired. I had to do some research to find out where the data is stored in order to manually sincronize between devices through Nextcloud. |
Yes I'd like to sync via dropbox and I expected to do that by having Joplin save markdown files to my file system, and specifying my dropbox directory as the place to save them. At that point, joplin doesn't really need to know it's syncing; just saving files and detecting changes on the file system. |
This. The documentation says that filesystem synchronization is supported, but there doesn't seem to be any way to configure this in either the app or desktop. I use syncthing to share directories among my workstations and mobile devices. It's not going to work to sync the sqlite database file itself... it needs to be supported in the application. |
Hello, |
I might be missing something but how can an Android and desktop app sync? File system sync in Joplin allows two applications to share a directory and synchronise with whatever is on it. So you can have the CLI and desktop apps sync to this dir, or if it's a network share, you can also share over the network. But how does that work with a mobile app? It won't have access to the directory on the desktop anyway, or is there some method to make it work? |
Simple - put the sync directory on /sdcard (or whatever external storage is called on your device). And establish a sync directory on the desktop system. The external sync agent (syncthing in my case) detects changes in the shared directory and makes the contents the same. Just like rsync between 2 unix hosts, for instance. It needs to be an external sync so Joplin knows to check the files for changes. Otherwise, unless you have the equivalent of an inotify handler, each Joplin instance won't know that the sycn files have changed. |
The latest desktop version has support for filesystem sync so for now it works in CLI and desktop. For mobile, a separate driver will have to be written since file access is a bit different. Actually in case someone wants to try a pull request, I'm putting here the information to create this driver as it's quite straightforward:
Once this driver is working it's jut a matter of loading either this one on mobile or the regular one on desktop/cli. |
I have the same idea with @closecrowd |
+1 for the local sync for Android too.
at this point If I could set sync to local to a bit of workaround until the proper Own/Nextcloud driver is done but will work as needed |
Anymore development on this? I'd like to be able to sync through my Nextcloud server with the mobile app. |
I too need to be able to sync it to a local place on my desktop and android, to be able to sync it with my nextcloud. What is the status on this? I don't see the option of local sync in either of the applications. |
A very necessary feature for me as well. I use Dropsync to sync a folder on my Android device with my Dropbox. From there it syncs with my desktop folder where Joplin can pick it up. This way I can also securely sync Joplin through many other file hosting services, even simply USB. |
Would very much appreciate this feature as well, as I have limited internet access and rely mostly on syncthing over a local network. |
Congratulations for the app! Love it! I add to this thread a problem I found and it´s that it became impossible for me to set a specific folder on Nextcloud to make de sync. Any ideas? I work on Mac. |
@danicotillas: what specific folder do you like to use? Can you post an example, please? May I can help you... |
I have a folder called "Joplin" on my root Nextcloud folder. I would like
to Sync in there instead of the root. I don't know if I'm clear enough.
Thanks!
El mié., 14 mar. 2018 13:59, Jan C. Gerhard <notifications@github.com>
escribió:
… @danicotillas <https://github.com/danicotillas>: what specific folder do
you like to use? Can you post an example, please? May I can help you...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHSDP08X8oh7BS2ft_5i4jqykYy-EPG7ks5teRRKgaJpZM4QzbAj>
.
|
@danicotillas if you want to use a specific destination folder for your joplin files in Nextcloud, you simply have to append its name to the webdav root url. The standard root url for webdav access is For example, if you want joplin to sync files in a subfolder called "joplin" (beware it's case-sensitive!) that is located straight in your Nextcloud root path like so... ...just append its name (case-sensitive!) to the root url separated with a slash "/". You can also use sub-sub-folders by just adding their names to the url separated with slashes "/". In joplin's configuration settings you simply put the accurate credentials into the respective fields: Click on "Check synchronization configuration" and your are done! Hope I could help you so far?! Kind regards and have a nice day! |
You have to create the folder manually in Nextcloud first. Than you can use it. Joplin does not create it automatically if it doesn‘t exist. |
I need this feature. Please.. |
@danicotillas could you solve the directory problem? |
laurent, I am not sure why you've avoided implementing this capability. if you allow us to chose the data directory where joplin stores notes than folks can use whatever they want. it is your project and perhaps the learning about various sync methods is what interests you, but this should be relatively simple to add on all the platforms, even android. if you just aren't going to do this can you close/reject this issue. thanks for you time and patience. i love the app but can't use because of this one thing. |
Does someone trying this? I love this app and I want to use at Android too. |
I could write to the folder, but after relaunch the app, the notes are not shown. |
@corona6, what do you mean they aren't shown? Did they get deleted? |
@laurent22 Yes, they are deleted from app. But I could find markdown files in synced folder. |
Did you sync with a folder, then changed the path to a different (empty) folder? Because the result would indeed be that all data is deleted on the app. |
@laurent22 I didn't change path. |
@corona6, does it always does it and do you have any steps I can follow to replicate the bug? If I sync with a folder, all the items are there. If I close the app and re-open it and sync again, nothing gets deleted, so not sure what the issue is. |
@laurent22 This is the steps that I did.
I could find markdown files in new folder. |
@corona6, I still cannot replicate this. What path are you using? Is it on the internal or external storage? Do you have access to it with a file explorer? |
Out of curiosity, did anyone else try this feature and are you seeing this bug too? |
Then may be this is my device problem. sorry.
I create |
@laurent22 It seems that I'm putting the wrong path. NG /storage/emulated/0/joplin/ I though the path was correct because the files are created. But the fetching doesn't works well with the wrong path. |
@corona6, thanks that was it. It was treating the path with trailing slash as different when writing and when reading, which was causing all the notes to disappear. This will be fixed in the next release. |
I will simply leave this link here for anyone else after me failing to read the docs and searching through the issues for the correct way to sync the cli .... |
I am also having this problem. At first I tried syncing over network, but found that this was not available. All above solutions for syncing locally also did not work for me. I am using foldersync to get the files from my network. Without joplin being able to read or find the files locally on the device, the program is useless to me on android. Please work on a fix? It feels like such an incomplete solution without this feature and will not be useful to me as an evernote replacement otherwise. |
@laurent22 Edit: my domain has changed a frew weeks ago, and it worked with the old one but I don't know if this is linked as it works on the desktop application... |
@leolivier, when I copy the URL from the line |
Woaw, Great, you're right... It works! |
But now, I have another problem! When I sync my Android, all notes are cloned instead of being merged... |
@seigun23, filesystem sync on Android should work unless there's some bug I'm not aware of. Did you give permission to the app to access local storage? Also it's probably better not to post here but rather open a new issue with details about the bug. |
@laurent22 Hello! Thanks in advance for answering! |
Yes you can use Nextclouds "App Passwords". You can find them in the settings. But if this does not work you should open a new issue because I think this is not releated to this request. |
Hey guys! Hopefully, this is the right thread to ask the following question. I've tried already solution mentioned here - #42 (comment) - but doesn't work. Could you assist me with this, please? |
@laurent22 Hello sir. Could you assist with my previous message/question (#61 (comment))? |
Hello, |
@weleoka, it's working fine for me with an URL like https://nextcloud.example.com/remote.php/webdav/Joplin |
There are many different apps/ways to sync files between systems. I'd like the windows/linux/android versions to be able to use a directory I specify as the location for my notes. I use an app on android called foldersync to sync files and freefilesync on windows/linux. this change will allow me to use those and other users to use whatever tools that they choose.
The text was updated successfully, but these errors were encountered: