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

gh-85253: Exclude __pycache__ directories from backups using CACHEDIR.TAG #21060

Closed
wants to merge 8 commits into from

Conversation

jstasiak
Copy link
Contributor

@jstasiak jstasiak commented Jun 22, 2020

This helps to prevent bloating backups with unwanted (possibly
frequently changing, if __pycache__ directories are removed and
recreated) files.

Granted, one can add __pycache__ directory to their
backup-tool-of-choice exclusion list, but those lists are ever
growing and maybe it'd be good to help the tools and the users.

See https://bford.info/cachedir/ for more information about the
specification – it's supported by Borg, restic, GNU Tar and attic
out of the box, other pieces of software (like rsync, Bacula and
rdiff-backup) can be made to use it (partially, just the existence of
the tag file is used, not its content)

https://bugs.python.org/issue41081

…R.TAG

This helps to prevent bloating backups with unwanted (possibly
frequently changing, if __pycache__ directories are removed and
recreated) files.

Granted, one can add __pycache__ directory to their
backup-tool-of-choice exclusion list, but those lists are ever
growing and maybe it'd be good to help the tools and the users.

See https://bford.info/cachedir/ for more information about the
specification – it's supported by Borg, restic, GNU Tar and attic
out of the box, other pieces of software (like rsync, Bacula and
rdiff-backup) can be made to use it (partially, just the existence of
the tag file is used, not its content)
jstasiak and others added 2 commits June 24, 2020 23:54
Co-authored-by: Éric Araujo <merwok@netwok.org>
@brettcannon brettcannon changed the title bpo-41081: Exclude __pycache__ directories from backups using CACHEDIR.TAG gh-85253: Exclude __pycache__ directories from backups using CACHEDIR.TAG Dec 18, 2023
@brettcannon
Copy link
Member

FYI I don't think the issue for this has reached a conclusion that this is something we want to do yet.

jstasiak and others added 2 commits January 17, 2024 07:52
Co-authored-by: Frazer McLean <frazer@frazermclean.co.uk>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@brettcannon
Copy link
Member

Closing as I just closed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants