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

--nuke doesn't use cache directory #96

Open
cperciva opened this issue Nov 10, 2015 · 1 comment
Open

--nuke doesn't use cache directory #96

cperciva opened this issue Nov 10, 2015 · 1 comment

Comments

@cperciva
Copy link
Member

This is a feature (if you lose your cache directory and want to nuke a machine, you shouldn't have to run --fsck first), but it has two downsides:

  1. Not using the cache directory means not locking the cache directory, so tarsnap --nuke will be interrupted if a cron job kicks in to create an archive.
  2. Not using the cache directory means not updating the cache directory, so people need to run --fsck after running --nuke if they want to keep using the same keys.

I think the answer here might be to make the cache directory optional for --nuke -- use it if present, but retain the current behaviour if not. A bit of nuance is needed in case someone wants to nuke a machine while running on a different machine which has a valid cache directory; we don't want to mangle (or even lock) the wrong cache directory. The right answer might be to try a "normal" delete transaction first, and revert to the no-cache-directory nuke pathway if that fails with an out-of-sync error.

I need to think about this some more.

@cperciva
Copy link
Member Author

Note: Issue #76 is the second downside I mentioned above.

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

No branches or pull requests

1 participant