Skip to content

Shell Scripts

Bash/shell scripts for automation, backup operations, and system administration tasks.

NameDescription
backup-kube-pg.shbackup / restore postgres database from / to a kubernetes pod.
backup-kube-vault.shbackup / restore vault raft cluster from / to a kubernetes pod.
clone-subdir.shclone a subdirectory from a git repository.
compose-to-matrix.shparse docker-compose file to create github matrix.
delete-ghcr-image.shdelete image and subsequent manifests from ghcr.
eol-infos.shget package end of life infos.
export-argocd-resources.shexport ready-to-apply argocd resources.
export-kube-resources.shexport ready-to-apply kubernetes resources.
github-create-app.shcreate a github application.
github-create-ruleset.shcreate a github rulesets for a given repository.
helm-template.shgenerate helm template.
init-env-files.shinit '.env' and '.yaml' example files by copying them without 'example'.
keycloak-add-clients.shadd keycloak clients for a given keycloak realm.
keycloak-add-users.shadd keycloak users for a given keycloak realm.
keycloak-get-token.shdisplay keycloak token for the given infos.
keycloak-list-users.shlist keycloak users for a given keycloak realm.
keycloak-required-tac.shadd terms and conditions required action to all realm users.
kube-generate-token.shgenerate a kubernetes token / kubeconfig with a given service account / RBAC.
manage-etc-hosts.shadd or update host ip adress in /etc/hosts.
monitor-kube-cnpg.shgenerate and print cnpg monitoring report.
monitor-kube-qdrant.shgenerate and print qdrant monitoring report.
monitor-kube-redis.shgenerate and print redis monitoring report.
monitor-kube-vault.shgenerate and print vault monitoring report.
purge-ghcr-tags.shpurge ghcr tags older than a given date.
trivy-report.shparse trivy json reports to create a markdown summary.
update-zsh-completions.shupdate zsh-completions sources.

TIP

Using a script directly from a curl command :

sh
curl -s https://raw.githubusercontent.com/this-is-tobi/tools/main/shell/<script_name> | bash -s -- -h

Replace <script_name> by the name of the script you want to run (eg. manage-etc-hosts.sh).