[Bug] Not clearing all backup files
Guidelines
- [X] I have read the FAQ and it doesn't cover the issue.
- [X] I have searched the issue tracker for open and closed issues that are similar to the feature request I want to file, without success.
- [X] I'm on the latest version.
- [X] I'm not using a test build (alpha/beta/release-candidate).
- [X] This issue contains only one bug.
Describe the bug
Backup of all data of app "OsmAnd+" (net.osmand.plus), then deleting the backup leaves user data backup files.
- Install OsmAnd+ and download additional maps
- Create a backup in Neo-Backup of Osmand with all data enabled
- In the file explorer find 10 GiB in a subdir net.osmand.plus in the Neo-Backup directory
- Delete the backup in Neo-Backup
- There are still 9,7GiB of data in that subdir
Expected Behavior
Deleting a backup should delete all data in the Neo-Backup directory.
Background: I was looking to which category of Data, External data, OBB Data, Media data all the big downloaded maps belong. So I started to make a full backup first to see the size, then delete it and make another with only partial data. There I found this bug.
Neo Backup's Version
8.3.8
Installation Source
Official F-Droid repo
Last Known Working Version
No response
Relevant information
- Device: Xiaomi Mi 11 Ultra
- Android Version: 14
- ROM: HyperOS 1.0
Can it be a bug related to HyperOS / Android 14? I can't reproduce it on LineageOS 20. Whole backup folder of OsmAnd is gone after deleting the backup in Neo Backup.
Can it be a bug related to HyperOS / Android 14? I can't reproduce it on LineageOS 20. Whole backup folder of OsmAnd is gone after deleting the backup in Neo Backup.
I have similar issues. And just that you mentioned it, it seems to have started when I upgraded my device to HyperOS.
In my case, the user data is kept when deleting a backup including the scheduled cleanup. I.e. I configured NeoBackup to keep 2 recent backups but since the upgrade all user data is kept resulting in massive storage usage.
If you need more information or I can help otherwise, feel free to ask. I would really like to have my storage space back.
i'm not sure if this is anyhow related, but i noticed a similar behavior on older weaker devices (with custom ROMs and not even a Xiaomi device... so related to HyperOS at all):
i've set the number of backups to 1; enabled a scheduled backup and told it to backup all kind of data available for all user-apps... after a while i noticed, that in some app folders of Neo Backup there is not only one but multiple backups present.
and even stranger: every now and then not all archives of an old backup got deleted (or may it be that not all of the files got created in the first place?)... or worse, the corresponding .properties-file is missing (without hardly deleting any files of the corresponding folder), hence it is not shown at all in the app itself but still occupying quite some storage.
interestingly...
- this seems to happen not only for big apps/archives but even ~1 MB apps with hardly any data.
- if you don't change much on your device (install or uninstall apps; add big chunks of data to backup etc.), most of the time it seems to be the same app whose older backups didn't get deleted.
as mentioned, i mostly or close to solely noticed this on pretty weak devices so i didn't bother that much as it is not that big of a deal to every now an then - if you are low on storage - scroll through the Neo Backup folder and check if there are only 2 times as much items present as your desired backups. ...as long as you have a decent file browser installed. 😉
one thing which comes to my mind is, that a nice workaround to deal with such issues would be a function/button (similar the one which deletes all backups of not installed apps), to let Neo Backup scan through its folder and delete all older folders and/or .properties-files which exceed the number of maximum backups set, even resp. especially if it is not a consistent backup.
Reading this issue I checked my device. There are no more .properties files than configured number of maximum backups. But the actual backup directories are back to the day I first install and run NeoBackup. Might be a bug of earlier versions. But current version should clean up the mess previous buggy versions left.
… But current version should clean up the mess previous buggy versions left.
Can't confirm. Still have backups from mid-2024 in my backup directory with the current (8.3.11) version.
I seem to experience similar issues on my Pixel 6a, where huge amounts of copies of WhatsApp user data are retained even though I've configured keeping only two revisions
I'm having the same issue on my Pixel 6a, I was running a full backup and then switched to just backing up user apps, but the system app folders are still there even after switching retention to 1 backup version.