Skip to content

[Feature Request] Exclude paths from backup #991

@mid-kid

Description

@mid-kid

Guidelines

  • I have read the FAQ and it doesn't cover my request.
  • I have searched the issue tracker for open and closed issues that are similar to the feature request I want to file, without success.
  • I'm on the latest version.
  • I'm not using a test build (alpha/beta/release-candidate).
  • This issue contains only one feature request.

Problem Description

Some apps have big data files in their data. For example, with "OsmAnd~", the map files are hundreds of megabytes big, and they're stored in /sdcard/Android/data/net.osmand.plus/files along with track recordings and favourites.

I would like to have a per-app field that excludes files from both manual, automated and batch-backups. This would save me a lot of storage space currently being used by big data files from apps where I only care about favourites/user settings.

Proposed Solution

I need a field that allows me to exclude files from a back up. For example:

  • "OsmAnd~": $extdata/files/*.obf: Exclude map files from OsmAnd
  • "Termux": $data/files/usr: Exclude package manager-managed files from Termux (maybe with a way to allow usr/etc and usr/var to be backed up anyway?), while backing up user files in $data/files/home
  • "Whatsapp": $data/files/decompressed: 70MB of natives from whatsapp that contain no user data.
  • "Telegram": $data/files/cache4.db: Big cache file kept outside of the traditional cache directory.
  • "Firefox": $data/files/mozilla/*/storage: Exclude site and extension storage, I only care about settings and bookmarks.

And so on and so forth

Where:

  • $extdata is /sdcard/Android/data/
  • $data is /data/data/

Alternatives Considered

The only alternative I can think of that I can do right now is to post-process the backups with a script or something. That's not ideal.

Relevant information

  • Device: Pocophone F1
  • Android Version: 15
  • ROM: crDroid
  • App's Version: 8.3.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions