aaf-easydiary icon indicating copy to clipboard operation
aaf-easydiary copied to clipboard

Support for nextcloud backup

Open Larnicone opened this issue 5 years ago • 2 comments

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.

Larnicone avatar Jan 31 '20 14:01 Larnicone

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.

hanjoongcho avatar Feb 03 '20 02:02 hanjoongcho

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
    • 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
    • In Diary App:
      • Settings: Folder = the part of the path to the actual folder that comes after /storage/emulated/0/, for example Android/media/com.nextcloud.client/nextcloud/[email protected]/Diary
    • 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.

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?

silmaril42 avatar Dec 16 '20 09:12 silmaril42