oandbackup icon indicating copy to clipboard operation
oandbackup copied to clipboard

app cache backup should not happen or be optional

Open ildar opened this issue 11 years ago • 7 comments

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).

ildar avatar Aug 07 '14 08:08 ildar

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

jensstein avatar Aug 07 '14 09:08 jensstein

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

ildar avatar Aug 07 '14 10:08 ildar

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.

jensstein avatar Aug 07 '14 11:08 jensstein

Automatic cache management

Developer: https://github.com/jensstein/oandbackup/issues/109#issuecomment-161376711

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.

ghost avatar Oct 07 '16 16:10 ghost

Was this ever implemented ?

uudruid74 avatar Jul 22 '17 12:07 uudruid74

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.

dragonmaus avatar Dec 31 '18 05:12 dragonmaus

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

ghost avatar Dec 31 '18 15:12 ghost