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

--keys-filter-cmd CMD #2

Open
yarikoptic opened this issue Nov 18, 2024 · 1 comment
Open

--keys-filter-cmd CMD #2

yarikoptic opened this issue Nov 18, 2024 · 1 comment
Labels
CLI Relating to the command-line interface enhancement New feature or request therefor

Comments

@yarikoptic
Copy link
Member

Add support for the tool to be paired with an (external) tool to inform the tool on either any particular key should be backed up.

The immediate usecase for DANDI is to cater to use-case @satra would like to achieve that we would avoid backing up old known to be not needed huge .h5 files for 000108 (IIRC), or overall -- do not bother backing up not actively used/references assets (which I would prefer to avoid -- too much possibility for a bug). So, it would be great to be able to explicitly filter out some downloads based on some external domain-specific knowledge.

Inspired by git annex CMD --batch mode, I envision

  • s3invsync passing json 1 liner record with "key" and "versionId" (if known) to the external CMD via stdin
  • CMD in turn in stdout responds with a json record on the "action" which could be
    • null - no opinion, up to the s3invsync
    • "backup" - do ensure local presence
    • "skip" - do not backup
    • "kill" - do not backup and ensure that no backup of this key/version locally exists,
    • "kill-all-versions" - do not backup and ensure that no backup of this key of any version locally exists.

Last two might be important for the use cases where users demand that we destroy all copies of their data

@jwodder jwodder added enhancement New feature or request therefor CLI Relating to the command-line interface labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Relating to the command-line interface enhancement New feature or request therefor
Projects
None yet
Development

No branches or pull requests

3 participants
@yarikoptic @jwodder and others