ankidroid / Anki-Android

AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
GNU General Public License v3.0
8.57k stars 2.21k forks source link

Support for choosing a custom backup location #15034

Open camoz opened 10 months ago

camoz commented 10 months ago

Is your feature request related to a problem? Please describe. I have a cloud folder on my android device. I configure some apps to do regular backups into that folder. I would like to do this with AnkiDroid, too, but I don't want to put the main AnkiDroid folder into my cloud folder, since it contains 10k+ (media) files.

Describe the solution you'd like An option for choosing a custom path for the backup folder.

Describe alternatives you've considered Relying on AnkiWeb for backup. Or manually copying the backup files.

Additional context Since AnkiWeb provides some way of backup, it is of less priority. However since local backups are still encouraged (by the AnkiWeb docs/terms), I think it would be a nice option. Also this is only relevant for setups that do not sync to another device regularly (since then that would be an additional form of backup).

welcome[bot] commented 10 months ago

Hello! 👋 Thanks for logging this issue. Please remember we are all volunteers here, so some patience may be required before we can get to the issue. Also remember that the fastest way to get resolution on an issue is to propose a change directly, https://github.com/ankidroid/Anki-Android/wiki/Contributing

david-allison commented 10 months ago

Strongly supported. I wanted this for 2.16

abkahn commented 10 months ago

I can take this up. @david-allison is that all right with you?

david-allison commented 10 months ago

Sure! Thank you

neeldoshii commented 9 months ago

Are you still working on this @abkahn ? Can I work on this or collaborate with you?

cc @david-allison

Can we perform it using file manager and save the backup on the custom path? and same retrieve the backup using the file manager and load it.

david-allison commented 9 months ago

@neeldoshii if there's no response in 48 hours, feel free to ping me and I'll assign it to you

neeldoshii commented 9 months ago

@david-allison Can I get assigned? We havent recieved any response from @abkahn.

david-allison commented 9 months ago

done, thanks

neeldoshii commented 9 months ago

Describe the solution you'd like An option for choosing a custom path for the backup folder.

Upon briefly testing I found out that we already allow our users to choose where they want to save their exported file as well while importing the backup.

Is this issue been fixed already or I have not understood the issue properly? Correct me if I didn't got it right then.

Have a look at this @david-allison

https://github.com/ankidroid/Anki-Android/assets/60827173/95ecac89-afc7-45f9-aa56-62f1b6029fe9

Thanks

david-allison commented 9 months ago

This is for the automated backups in the settings menu

nabby27 commented 7 months ago

Hi everyone,

I have been using this app for quite some time and I would really like to have this functionality.

I could provide a financial reward through Opire.dev for whoever resolves the issue, but the repository would have to install their app to be able to do this.

WDYT?

david-allison commented 7 months ago

I think you'd get a much better response if you stated:

In general, it'd be simpler if donations/bounties went through our Open Collective. [before my time] Our last bounty programme closed shop and stole funds, and as far as I understand it, the admin outweighed the positives.

neeldoshii commented 7 months ago

Hi everyone,

I have been using this app for quite some time and I would really like to have this functionality.

I could provide a financial reward through Opire.dev for whoever resolves the issue, but the repository would have to install their app to be able to do this.

WDYT?

Thank you for your dedication to enhancing the experience within Anki and for your willingness to offer a financial reward to address the issue at hand.

I will try to get this feature.

nabby27 commented 7 months ago

Hi @david-allison, I think opencollective and opire are not exclusive.

Personally, I like the idea of collaborating more knowing that my money improves the project on specific issues.

The curious thing about Opire is that there are no "funds", the person who creates the reward pays whenever they want (usually when the PR is merged) and the money goes directly from the creator of the reward to the programmer who receives it. (opire takes part of the money directly in the transaction)

I can understand your previous bad experience but maybe if you look at the documentation you can find value in it

wyy511511 commented 7 months ago

Describe the solution you'd like An option for choosing a custom path for the backup folder.

Upon briefly testing I found out that we already allow our users to choose where they want to save their exported file as well while importing the backup.

Is this issue been fixed already or I have not understood the issue properly? Correct me if I didn't got it right then.

Have a look at this @david-allison

2024-01-24.11.10.22.mp4

Thanks

I'm delighted that someone is willing to work on this valuable feature. Thank you! I guess there is some misunderstanding...

Export/Import serves as a manual workaround for backup mechanisms though there is indeed some intersection and you can reuse some function code. . I believe better UI/UX need allow set automatically backup and custom path. I would like share an example, it's aTimeLogger on iOS AppStore.

Automatic Backup

image

Manual Backup

image

💡Tips:

wyy511511 commented 7 months ago

@david-allison Do we need to create an associated issue with UI/UX labels? Or should we add UI/UX label within this issue? I lack project management experience.

david-allison commented 7 months ago

@nabby27 We won't be willing to take on the complexity at the moment.

Feel free to donate on our Open Collective with a message, and we'll be sure to send the money to the right place.

david-allison commented 7 months ago

@wyy511511

I don't see why we need the complexity

We have a backups screen in Settings - Backup. We need a standard Android Preference We need to know whether we can can directly backup to this location via our backend, or we'll need code to copy the file to the new location

In terms of the UX:

wyy511511 commented 7 months ago

I don't see why we need the complexity

Got it and you're right. I apologize for being influenced by my personal habits and for not being familiar with the existing feature especially when related to backend. Since custom path for backup is not currently supported, I have been manually exporting collections, which led me to overlook other backup functionalities.

@david-allison Your explanation and clarification is very clear. Thank you! Everyone should on same page now :)

neeldoshii commented 6 months ago

If someone wishes to take feel free to take this. I am unassigning my self.