aaf-easydiary
aaf-easydiary copied to clipboard
Support for nextcloud backup
Would it be possible, in addition of google drive backup, to add an option in the settings to schedule automatic backups, and the support of nextcloud's instances via the webdav protocol to define a remote backup folder.
This way, for people like me who have lineageos rather than google android version, it would be possible to create a dedicated folder on nextcloud, then enter it in the backup settings to automatically backup the diary, the same way it's done with google drive.
Thanks.
Currently, only two backups are available: Google Drive Backup and Device Storage. If you want to add a backup function using Nextcloud, consider adding it in a major version update. Thank you for your feedback.
I'd love to have full Nextcloud sync support for this app, too!
In the meantime let me point out possible workarounds that are available already:
- If you just want to edit on your phone and have a backup on your Nextcloud server, you can simply use the automatic upload function of the Nextcloud app for Android.
- If you want to sync edits from your phone and the server, it gets a bit more complicated. I succeeded with the following setup:
- In Nextcloud Android app:
- Settings: Set save location to
/storage/emulated/0/Android/media/com.nextcloud.client
- Create a Nextcloud folder
/Diary
- Activate sync on this folder
- Settings: Set save location to
- In a file browser app:
- Find out the actual complete path of the diary folder. It will be something like
/storage/emulated/0/Android/media/com.nextcloud.client/nextcloud/[email protected]/Diary
- Find out the actual complete path of the diary folder. It will be something like
- In Diary App:
- Settings: Folder = the part of the path to the actual folder that comes after
/storage/emulated/0/
, for exampleAndroid/media/com.nextcloud.client/nextcloud/[email protected]/Diary
- Settings: Folder = the part of the path to the actual folder that comes after
- In Nextcloud Android app:
- Add an automatic upload for this local folder to the server folder. I chose to upload existing files as well and to overwrite files on the server.
- This additional step is needed, because the "sync" functionality does not consider local changes in the file system, that occur without using Nextcloud API.
- In Nextcloud Android app:
I am not entirely sure, but adding full Nextcloud support to the app might be as simple as adding a system folder select dialog to the settings, which allows choosing a Nextcloud folder. Perhaps using the file handle returned by this might solve everything else and work for other cloud services as well?