birday icon indicating copy to clipboard operation
birday copied to clipboard

[feature request] auto backup or webdav support

Open du33169 opened this issue 1 year ago • 9 comments

I installed birday from F-Droid so there is no google cloud back up. Currently I have to manually click "export and share event" and then upload after editing. Is there any plan to add auto backup or webdav support? I am aware that this app is kind of private so some may not want to give it network access. Another posible way is to let user decide where to save the backup files so that we can save it to a webdav drive through SAF(Storage Access Framework), using apps like davx5.

du33169 avatar Mar 26 '24 03:03 du33169

Maybe it could be a way to store the entries in a calendar that can be synced to a cloud. See feature request: https://github.com/m-i-n-a-r/birday/issues/295

Nordlicht-13 avatar Mar 26 '24 21:03 Nordlicht-13

When installed from Play Store, the app has the automatic Google backup, but of course, it doesn't work in the F-Droid version. That's a fairly complex feature to implement, I'm not gonna lie, but I can try to create an "export to calendar" feature. I'll let you know when I start working on it!

m-i-n-a-r avatar Mar 27 '24 09:03 m-i-n-a-r

Hi, i think that these events can be sync with a caldav/carddav server like radicale

faan11 avatar Apr 28 '24 22:04 faan11

Hi @m-i-n-a-r , is there are any ETA for this feature?

faan11 avatar Jun 24 '24 16:06 faan11

I did some research, but, basically, I need help. I have no idea how to implement such a thing while keeping the app simple and straightforward.

m-i-n-a-r avatar Jun 24 '24 17:06 m-i-n-a-r

I think i have an idea that might solve this issue. This might be a workaround but it shouldn't be hard to implement it. The idea is to sync the events with the Android calendar. An external tool such as Davx5 can be used to sync the android calendar to a Webdav server. Birday needs a sync function that merges the events from the Android calendar with the Birday events. The function can use the event name to avoid duplicates. This sync can be done in background or can be triggered using a button. The application already has an import function. It should be feasible. What do you think? I may said something that was already said and i'm sorry for that, but that's what come up from my mind as well.

I have seen that your application is not using com.calendar. I'm using F-droid and Etar works good on my side. Etar is using the Calendar Android apis. I hope this may help https://github.com/Etar-Group/Etar-Calendar/blob/0a00f538803a9680980a499a41b7a5b3b758fd62/app/src/main/java/com/android/calendar/AllInOneActivity.java#L391

faan11 avatar Jun 24 '24 19:06 faan11

Ok, it makes sense and I'll take a look! I could simply add an "export to calendar" function, it should do the trick.

m-i-n-a-r avatar Jun 25 '24 13:06 m-i-n-a-r

Hi! It looks like you are struggling with the feature "export to calendar". It's a good one but not exactly what I described in this issue. It might be simpler in this way, than dealing with any calendar stuff:

  1. Add a preference item to let the user select the output path of the exported backup file. This shouldn't be hard because birday already has support for exporting to a fixed path, currently Android/data/com.minar.birday/files. You don't need any file permission if you use SAF and ACTION_OPEN_DOCUMENT_TREE.
  2. Add a hook function invoking the export process after the user submits any changes. This can be provided as a preference item as well.

Thank you again for this fantastic application!

du33169 avatar Jun 27 '24 08:06 du33169

Yep, this is an automatica backup feature and it was requested, I'll work on it as well, but I'm also trying to add an export to calendar feature (there's another issue requesting it) so they are two different features. I'll try to implement both in the next udpate 😄

m-i-n-a-r avatar Jul 03 '24 07:07 m-i-n-a-r

So, the upcoming beta has both the auto backup and the export to calendar feature, so I think I can close this, right? 😄

m-i-n-a-r avatar Jul 29 '24 20:07 m-i-n-a-r