Skip to content

Set "no dump" flag when supported for folders marked with CACHEDIR.TAG #15638

Open
@mdekstrand

Description

@mdekstrand

Problem

Most modern backup tools support CACHEDIR.TAG files, which Cargo places on several directories where useful.

However, older backup tools (some tar implementations as well as the dump family, including xfsdump) do not know aboutCACHEDIR.TAG, but do respect the "no dump" attribute that can be set with chattr.

Proposed Solution

Setting nodump (possibly recursively, I am not sure if it is inherited) on Cargo's cache and output directories on platforms that support it would enable them to be neatly excluded by backups made with older tools.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cachingArea: caching of dependencies, repositories, and build artifactsA-filesystemArea: issues with filesystemsA-unstableArea: nightly unstable supportC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions