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

automate checking that backup/volume_list is complete #225

Open
theyoyojo opened this issue Feb 7, 2025 · 1 comment
Open

automate checking that backup/volume_list is complete #225

theyoyojo opened this issue Feb 7, 2025 · 1 comment
Labels
feature A new feature

Comments

@theyoyojo
Copy link
Contributor

easy to forget to update when new volume is added

compare backup/volumes_list to container-compose.yml

@charliemirabile
Copy link
Contributor

is this "solution" too cursed?
diff <(head -n -1 backup/volumes_list | tail -n +2 | cut -c 13- | sort) <(python3 -c 'print(__import__("json").dumps(__import__("yaml").safe_load(__import__("sys").stdin.read())))' < container-compose.yml | jq -r '.volumes|keys|join("\n")')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
Status: Proposed
Development

No branches or pull requests

2 participants