From 7a11892200eecd90e76d40c31471c16ccb6a35e2 Mon Sep 17 00:00:00 2001 From: Aaron Roydhouse Date: Thu, 9 Feb 2017 01:03:45 -0500 Subject: [PATCH] Bump version to 0.1.3 --- README.md | 12 ++++++------ doc/backup-website-and-mysql.ps1 | 4 ++-- doc/backup-website-and-mysql.sh | 2 +- doc/backup-website.yaml | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b232e35..43d15d8 100644 --- a/README.md +++ b/README.md @@ -20,20 +20,20 @@ for an example deployment. Back up a files using `tar` in a container. It assumes `bash`, `tar`, and `gzip` is available. ``` -kubectl run --attach --rm --retart=Never kube-backup --image whereisaaron/kube-backup:0.1.2 -- \ +kubectl run --attach --rm --retart=Never kube-backup --image whereisaaron/kube-backup:0.1.3 -- \ --task=backup-files-exec --namespace=default --pod=my-pod --container=website --files-path=/var/www ``` Back up a database using `mysqldump` run in the MySQL container. It assumes the environment variables based on the [offical MySQL container images](https://hub.docker.com/_/mysql/) and that `gzip` is available. ``` -kubectl run --attach --rm --restart=Never kube-backup --image whereisaaron/kube-backup:0.1.2 -- \ +kubectl run --attach --rm --restart=Never kube-backup --image whereisaaron/kube-backup:0.1.3 -- \ --task=backup-mysql-exec --namespace=default --pod=my-pod --container=mysql ``` You could also schedule a backup to run daily. ``` -kubectl run --schedule='@daily' --retart=Never kube-backup --image whereisaaron/kube-backup:0.1.2 -- \ +kubectl run --schedule='@daily' --retart=Never kube-backup --image whereisaaron/kube-backup:0.1.3 -- \ --task=backup-files-exec --namespace=default --pod=my-pod --container=website --files-path=/var/www ``` @@ -86,7 +86,7 @@ run_name () { } #EXTRA_OPTS='--dry-run' -CMD='kubectl run --attach --restart=Never --rm --image=whereisaaron/kube-backup:0.1.2 --namespace=kube-backup' +CMD='kubectl run --attach --restart=Never --rm --image=whereisaaron/kube-backup:0.1.3 --namespace=kube-backup' $CMD $(run_name) -- $EXTRA_OPTS \ --task=backup-mysql-exec \ @@ -122,7 +122,7 @@ function Run-Name () { #$ExtraOpts = '--dry-run' # The '--attach --rm' allows us to block until completion, you could remove that not wait for completion -$Command = 'kubectl run --attach --rm --quiet --restart=Never --image=whereisaaron/kube-backup:0.1.2 --namespace=kube-backup' +$Command = 'kubectl run --attach --rm --quiet --restart=Never --image=whereisaaron/kube-backup:0.1.3 --namespace=kube-backup' Invoke-Expression "$Command $(Run-Name) -- $ExtraOpts --task=backup-mysql-exec --timestamp=$Timestamp --namespace=default '--selector=app=myapp,env=dev,component=mysql'" if ($LASTEXITCODE -ne 0) { Exit $LASTEXITCODE } @@ -154,7 +154,7 @@ spec: - --selector=app=my-app,env=dev,component=website - --files-path=/var/www/assets - --backup-name=assets - image: whereisaaron/kube-backup:0.1.2 + image: whereisaaron/kube-backup:0.1.3 name: kb-task restartPolicy: Never ``` diff --git a/doc/backup-website-and-mysql.ps1 b/doc/backup-website-and-mysql.ps1 index 8ff65cb..7f60eb8 100644 --- a/doc/backup-website-and-mysql.ps1 +++ b/doc/backup-website-and-mysql.ps1 @@ -15,10 +15,10 @@ function Run-Name () { #$ExtraOpts = '--dry-run' # The '--attach --rm' allows us to block until completion, you could remove that not wait for completion -$Command = 'kubectl run --attach --rm --quiet --restart=Never --image=whereisaaron/kube-backup:0.1.2 --namespace=kube-backup' +$Command = 'kubectl run --attach --rm --quiet --restart=Never --image=whereisaaron/kube-backup:0.1.3 --namespace=kube-backup' Invoke-Expression "$Command $(Run-Name) -- $ExtraOpts --task=backup-mysql-exec --timestamp=$Timestamp --namespace=default '--selector=app=myapp,env=dev,component=mysql'" if ($LASTEXITCODE -ne 0) { Exit $LASTEXITCODE } Invoke-Expression "$Command $(Run-Name) -- $ExtraOpts --task=backup-files-exec --timestamp=$Timestamp --namespace=default '--selector=app=myapp,env=dev,component=website' --files-path=/var/www/assets --backup-name=assets" -if ($LASTEXITCODE -ne 0) { Exit $LASTEXITCODE } \ No newline at end of file +if ($LASTEXITCODE -ne 0) { Exit $LASTEXITCODE } diff --git a/doc/backup-website-and-mysql.sh b/doc/backup-website-and-mysql.sh index eeb41b3..ce1d27c 100755 --- a/doc/backup-website-and-mysql.sh +++ b/doc/backup-website-and-mysql.sh @@ -14,7 +14,7 @@ run_name () { #EXTRA_OPTS='--dry-run' # The '--attach --rm' allows us to block until completion, you could remove that not wait for completion -CMD='kubectl run --attach --rm --quiet --restart=Never --image=whereisaaron/kube-backup:0.1.2 --namespace=kube-backup' +CMD='kubectl run --attach --rm --quiet --restart=Never --image=whereisaaron/kube-backup:0.1.3 --namespace=kube-backup' $CMD $(run_name) -- $EXTRA_OPTS \ --task=backup-mysql-exec \ diff --git a/doc/backup-website.yaml b/doc/backup-website.yaml index eb07546..d921d20 100644 --- a/doc/backup-website.yaml +++ b/doc/backup-website.yaml @@ -11,6 +11,6 @@ spec: - --selector=app=my-app,env=dev,component=website - --files-path=/var/www/assets - --backup-name=assets - image: whereisaaron/kube-backup:0.1.2 + image: whereisaaron/kube-backup:0.1.3 name: kb-task restartPolicy: Never