Export backups daily #178
-
Since #26 got closed, I still wish for this though, not sure why a just straight forward "export full backup daily" can't be implemented at least. I use Syncthing but as a means for backup only, not for external editing. |
Beta Was this translation helpful? Give feedback.
Replies: 37 comments 17 replies
-
you could achieve that by using https://github.com/jensstein/oandbackup for daily backup and then get files out ouf the device by Syncthing |
Beta Was this translation helpful? Give feedback.
-
Why would I bother with that if I have root? No, root is a precious rare thing these days, I don't have root, and since the app can already save files, I wish for a daily file save in |
Beta Was this translation helpful? Give feedback.
-
I am okay with exporting a daily backup to the SD card. In fact, I think it could be even enabled by default. Most of the code for this feature is already there (see ListHabitsController.java), but in addition to saving the file externally, we would also need to (1) automatically delete old backup files, and (2) add an option to disable these daily backups. |
Beta Was this translation helpful? Give feedback.
-
Yeah, maybe add just a counter "keep last X days" or something, where 0 means disabled. |
Beta Was this translation helpful? Give feedback.
-
+1 this would make integrating with services like exist.io x10 easier |
Beta Was this translation helpful? Give feedback.
-
Does it make sense for this feature to include an option for a daily CSV export to Google Drive (or whatever)? |
Beta Was this translation helpful? Give feedback.
-
I believe newish versions of Android may make exporting to various cloud storage services easier than it used to be, but I personally hope that if periodic backup does get implemented, there is an option to do so locally to the file system 🙂 |
Beta Was this translation helpful? Give feedback.
-
Automatic or scheduled CSV/Spreadsheet exports would also be highly valued! |
Beta Was this translation helpful? Give feedback.
-
I might be able to help with developing an MVP of this feature. I was thinking along the lines of two options:
The second option will probably be the easiest and fastest to develop. The first option, if developed, should maybe be kept as simple as possible. I was thinking of a simple trigger, maybe app stop, that would run a task that in turn would:
Would be interested to hear (a) if option 2 would be considered and (b) what do you think about the design suggested for option 1. |
Beta Was this translation helpful? Give feedback.
-
Hi, just my personal opinion: i think the apps should not reinvent the wheel again and again :) |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Hi, I would really appreciate this feature, or a paid service from the app devs. I rely so heavily on this app now, it's been a big gsme changer for me managing my health conditions - since I started using it with widgets, it's been just amazing. But, I'm really worried about the backup situation (and my phone isn't rooted) |
Beta Was this translation helpful? Give feedback.
-
I'd be happy, if the current backup functions (full and csv) could just be automated to do their jobs once a day. I too use syncthing to copy those to a non-mobile space. Today I have to do this manually with a high risk of forgetting. |
Beta Was this translation helpful? Give feedback.
-
Same thing here. Using syncthing to backup my android and it would be nice to have automatic daily backups on my Habits \o/ |
Beta Was this translation helpful? Give feedback.
-
I just lost one and a half year of data. It was my fault not for thinking of making a manual backup for before re-installing my phone, yet automated daily backups would have saved me. It would be super awesome if this feature can make it into the app! |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
@BrighTide any plans to merge it? :-) |
Beta Was this translation helpful? Give feedback.
-
@lerra ha no sorry, I don't really know Java or the project. This was just a hack to get it working for me that others might be able to use 😅 |
Beta Was this translation helpful? Give feedback.
-
This has been fixed in dc0b8de. The app will now automatically save a backup file to the SD card whenever the main activity is launched, assuming that no backup was generated within the last 24 hours. If there is already a very recent backup (<24 hours), the app should skip the auto backup. To avoid cluttering, the app will only keep a few files in the backup folder (currently 5 old backups + the newest one). All the other files in the backup folder should get automatically deleted. If you want to keep very old backup files for some reason, you will need to keep your own copy elsewhere. This feature should become available in Loop 2.0. |
Beta Was this translation helpful? Give feedback.
-
Backup seems to work fine, one great addition would be user defined folder to place it to e.g. into my already existing nextcloud sync folder, not to need additional tool to copy it over. Also automatic export to csv would be great. |
Beta Was this translation helpful? Give feedback.
-
I believe it will stop working in android 11 with the new app storage
permission if you ask the app to write outside its own folder
…On Sat, 19 Dec 2020, 21:51 mahdi1234, ***@***.***> wrote:
Backup seems to work fine, one great addition would be user defined folder
to place it to e.g. into my already existing nextcloud sync folder, not to
need additional tool to copy it over. Also automatic backup of csv would be
great.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/iSoron/uhabits/issues/178#issuecomment-748523234>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEJZPFWFW3WVAGSTVA6UORLSVUG6VANCNFSM4CQFROBA>
.
|
Beta Was this translation helpful? Give feedback.
-
What is the status of this feature, especially in Android 11? It seems to be right that this is not working anymore, I can't find any automatically generated backups (and the feature is not documented either). To get it to work with the new storage framework it would probably be enough (and also best) to let the user choose a backup location. My suggestions:
Most of these things are luckily only a setting for an existing variable and should thus be easy to implement. Looking forward to a working auto backup which would close an important gap in this otherwise great app! |
Beta Was this translation helpful? Give feedback.
-
`/storage/Android/data/org.isoron.uhabits/files/Backups/` is the path
|
Beta Was this translation helpful? Give feedback.
-
There's also the issue of app uninstall, which will remove that folder.
|
Beta Was this translation helpful? Give feedback.
-
I would also like to have this feature seems like a very good one. Great app by the way, it's absolutely fantastic :) |
Beta Was this translation helpful? Give feedback.
-
I'm another delighted user who would really appreciate having the CSV auto-exported alongside the app DB. Might a pull request adding the CSV to the auto-export be accepted? |
Beta Was this translation helpful? Give feedback.
-
I think the app needs this feature badly. The user should be able to select a location to automatically back up the data every day. That way the user would have the choice to use any cloud storage app to sync the folder to the cloud. |
Beta Was this translation helpful? Give feedback.
-
I was also searching for how to do this - a backup that isn't uploaded somewhere isn't really a backup. It's a locally stored database copy. |
Beta Was this translation helpful? Give feedback.
-
The current auto backup feature isn't particularly useful because no backup app can access it (like nextcloud or syncthing). It would be great if the path where auto backups went was customizable or stored externally. |
Beta Was this translation helpful? Give feedback.
-
Hey guys, here's an approach that'll automatically back up your data to Google Drive: This patch simply saves the db to |
Beta Was this translation helpful? Give feedback.
This has been fixed in dc0b8de. The app will now automatically save a backup file to the SD card whenever the main activity is launched, assuming that no backup was generated within the last 24 hours. If there is already a very recent backup (<24 hours), the app should skip the auto backup.
To avoid cluttering, the app will only keep a few files in the backup folder (currently 5 old backups + the newest one). All the other files in the backup folder should get automatically deleted. If you want to keep very old backup files for some reason, you will need to keep your own copy elsewhere.
This feature should become available in Loop 2.0.