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

Cassandra: data directory hardcoded into the globs #174

Open
dmitry-potepalov opened this issue Dec 21, 2023 · 0 comments
Open

Cassandra: data directory hardcoded into the globs #174

dmitry-potepalov opened this issue Dec 21, 2023 · 0 comments

Comments

@dmitry-potepalov
Copy link
Contributor

Presently the patterns we use to pick the files that go into the backup for Cassandra do not start at the keyspace level; they include the data directory data:

SNAPSHOT_GLOB = f"data/*/*/snapshots/{SNAPSHOT_NAME}"
BACKUP_GLOB = "data/*/*/backups/"

Therefore if the data dir is configured to be anything else than literally data in cassandra.yaml, we don't back up anything. E.g. setting up a demo with ccm required me to patch the thing, because ccm puts the data into data0...dataN dirs depending on the count in configuration.

If we want anyone else besides us to use Astacus, the data dir needs to become configurable. Unfortunately, it's non-trivial, because we need to keep compatibility with the existing backups. Shouldn't be very complicated, though.

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

No branches or pull requests

1 participant