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

app cache backup should not happen or be optional #64

Open
ildar opened this issue Aug 7, 2014 · 7 comments · May be fixed by #278
Open

app cache backup should not happen or be optional #64

ildar opened this issue Aug 7, 2014 · 7 comments · May be fixed by #278

Comments

@ildar
Copy link

ildar commented Aug 7, 2014

An app cache isn't usually required. So backing it up is a waste of space.
I'd suggest to make it optional.
FYI: adb backup seems to skip cache (need to check).

@jensstein
Copy link
Owner

yes, this seems sensible. i would definitely include cache by default though.

@ildar
Copy link
Author

ildar commented Aug 7, 2014

Hi! I don't mean to argue, just curious: what app's cache you appreciate so
high?

@jensstein
Copy link
Owner

i don't particularly like caches :) but the point is that backups should reflect the state of that which is backed up. restoring should as accurately as possible restore how the package was when it was backed up, not create a somewhat similar state for it (unless the user wants that).
i imagine it could be bothering not to have the cache backed up on some media players if they store metadata or thumbnails there.
i think it's a flaw that abd backup doesn't do this if there is no way to turn it on (which i haven't looked into).
so i think it's a good suggestion but it should be opt-in.

@ghost
Copy link

ghost commented Oct 7, 2016

Automatic cache management

Developer: #109 (comment)

Automatically clearing cache before backing up would massively help users as apps such as Firefox collect hundreds of megabytes cache (Firefox app size is ~ 50 MB) and clearing temporary files before doing a backup can make the process dozens of times faster for certain applications, based on my experience.
Giving an option to exclude cache is enough. TWRP doesn't back up cache by default, though.

@uudruid74
Copy link

Was this ever implemented ?

@dragonmaus
Copy link

dragonmaus commented Dec 31, 2018

Would it be possible to at the very least make cache backup optional? Certain apps like FDroid store large quantities of data in cache that nobody would ever want to back up.

I just tested it out with a mere 30 apps, and clearing the cache removed almost 300MB (after compression and encryption!) of useless data from my backup folder.

@ghost
Copy link

ghost commented Dec 31, 2018

Firefox seems to persistently store 600 MB of cache on my system (OnePlus One, 64 GB).

icewind1991 added a commit to icewind1991/oandbackup that referenced this issue May 11, 2020
@icewind1991 icewind1991 linked a pull request May 11, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants