added mariadb_backup alias
This commit is contained in:
parent
313b60d0a8
commit
3f165f2c00
3
.alias
3
.alias
@ -4,6 +4,7 @@ alias weather='curl http://v2.wttr.in/Stockholm'
|
|||||||
alias gpg='gpg2'
|
alias gpg='gpg2'
|
||||||
alias ls_dotfiels='/usr/bin/git --git-dir=$HOME/.dotfiles ls-tree --full-tree -r --name-only HEAD'
|
alias ls_dotfiels='/usr/bin/git --git-dir=$HOME/.dotfiles ls-tree --full-tree -r --name-only HEAD'
|
||||||
alias gl='git log --graph --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit --date=relative'
|
alias gl='git log --graph --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit --date=relative'
|
||||||
alias mariadb='kubectl -n mariadb exec -it $(kubectl -n mariadb get pod --selector=app.kubernetes.io/instance=mariadb --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}") -- mysql'
|
alias mariadb='kubectl -n mariadb exec -it $(kubectl -n mariadb get pod --selector=app.kubernetes.io/instance=mariadb --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}") -- mariadb'
|
||||||
|
alias mariadb_backup='kubectl -n mariadb create job --from=cronjob.batch/database-backup-job database-backup-job-manual-$(date +"%Y-%m-%d-%H-%M-%S")'
|
||||||
alias nodered='kubectl -n nodered exec -it $(kubectl -n nodered get pod --selector=app.kubernetes.io/name=node-red --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}") -- bash'
|
alias nodered='kubectl -n nodered exec -it $(kubectl -n nodered get pod --selector=app.kubernetes.io/name=node-red --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}") -- bash'
|
||||||
alias hass='kubectl -n home-assistant exec -it $(kubectl -n home-assistant get pod --selector=app.kubernetes.io/name=home-assistant --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}") -- bash'
|
alias hass='kubectl -n home-assistant exec -it $(kubectl -n home-assistant get pod --selector=app.kubernetes.io/name=home-assistant --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}") -- bash'
|
||||||
|
Loading…
Reference in New Issue
Block a user