Skip to content
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

Add auto backup #238

Open
natrius opened this issue Apr 27, 2018 · 11 comments
Open

Add auto backup #238

natrius opened this issue Apr 27, 2018 · 11 comments

Comments

@natrius
Copy link

natrius commented Apr 27, 2018

Add the option to autobackup after a new card is saved.

@huste
Copy link

huste commented Mar 10, 2019

In addition, I'd like to create the backup in a specific place, so that my nextcloud sync tool finds the export and uploads it to my cloud...

@trymeouteh
Copy link

To have auto backup to the cloud or even syncing to the cloud will be handy. If you lose your phone, adding all the cards back into the app can take quite some time to do.

Please add a encrypted auto backup. I would like to suggest using 7z for encryption.

@brarcher
Copy link
Owner

I'll probably not work on this feature myself. If someone were interested in contributing it I'd be happy to review the pull request.

As a note, this app does not have the network permission. This is intentional. If someone were to add a backup option, it may have to be done via a second app. Maybe a plugin app that receives card updates or the like. The solution would need to involve not adding the network permission to this app.

As for the format of the backup, as another app would handle the data the format is unimportant (and thus 7z is fine). Support for importing 7z data would need to be added to this app. To be consistent it may also be worth while adding support for exporting to 7z (mentioned in #285)

@natrius
Copy link
Author

natrius commented Sep 17, 2019

No need for network anything. Just add a option like "Auto save when new card is added" and "Choose destination" everything else can be done with nextcloud autoupload for example.

Also, for this feature, there is no encription needed. Just keep the current one and at least let us choose the destination folder, that would be awesome.

@brarcher
Copy link
Owner

brarcher commented Oct 7, 2019

Recently I added #311, which allows a backup manager on the system to backup and restore the app's data. This should allow a use case such as:

If you lose your phone, adding all the cards back into the app can take quite some time to do.

to be taken care of. Do you agree? Given this, is it necessary to have a separate automatic backup mechanism directly in the app?

@huste
Copy link

huste commented Oct 7, 2019

If somebody can recommend a stable, preferably open source, backup solution not requiring root, that creates complete backups locally on the SD card which I can then sync to my nextcloud instance, maybe that's enough.

Then again, an auto-export after editing cards to a prefefined directory, keeping exports from the last say 6 months, could be a nice feature independent of external backup solutions.

EDIT: added the part about not requiring root...

@natrius
Copy link
Author

natrius commented Oct 7, 2019

I would just need an option to choose the backup location, as it now just safes into sd-card root (i think). ideall an autobackup after a new card is added.

I was asking this because i'm not using any backup-solution right now because linageos has none builtin. Titanium is not available for me (and i don't like it that much), but there is oandbackup available in the f-droid store, maybe thats worth a try for you at least @huste

Still, appreciate your effort @brarcher thanks. When something like that is not added, i guess i can't change it on my own :D

@huste
Copy link

huste commented Oct 8, 2019

@natrius: No, oandbackup is nothing fo me, my device is not rootable.

@natrius
Copy link
Author

natrius commented Oct 9, 2019

Oh, missed that, i'm sorry. I'm not aware of such an possibility.

Seems like you have to:

  1. Open the app
  2. press the backup button
  3. close the app
  4. open the filebrowser
  5. move the file to the autoupload folder from nextcloud manually
  6. let nextcloud autoupload the file

Thats the way i'm doing it right now, because unfortunately its not possible to choose the backup locatio :(

@huste
Copy link

huste commented Oct 9, 2019

@natrius: yes, that's what I do right now If I don't forget. So the simplest solution would be to reqeust external write permission and if granted an option for auto-save after editing. I vote for keeping this issue open.

@natrius
Copy link
Author

natrius commented Oct 10, 2019

@brarcher

Could you change the default-safe folder from sd-card root to a "backup_loyaltycard" subfolder at least? This would be the easiest solution for now, because we could set up autoupload for this folder and from then on just press "Backup" in the app itself, if the other changes are to difficult to make.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants