Skip to content

Commit 3162697

Browse files
authored
Add auto-backup doc + Restructure docs (#618) (#673)
Signed-off-by: hossainemruz <emruz@appscode.com>
1 parent 2602a2e commit 3162697

19 files changed

+948
-163
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: stash.appscode.com/v1beta1
2+
kind: BackupBlueprint
3+
metadata:
4+
name: postgres-backup-template
5+
spec:
6+
# ============== Blueprint for Repository ==========================
7+
backend:
8+
gcs:
9+
bucket: stash-testing
10+
prefix: stash-backup/${TARGET_NAMESPACE}/${TARGET_APP_RESOURCE}/${TARGET_NAME}
11+
storageSecretName: gcs-secret
12+
# ============== Blueprint for BackupConfiguration =================
13+
task:
14+
name: postgres-backup-11.9.0-v4
15+
schedule: "*/5 * * * *"
16+
retentionPolicy:
17+
name: 'keep-last-5'
18+
keepLast: 5
19+
prune: true
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: kubedb.com/v1alpha2
2+
kind: Postgres
3+
metadata:
4+
name: sample-postgres-1
5+
namespace: demo
6+
annotations:
7+
stash.appscode.com/backup-blueprint: postgres-backup-template
8+
spec:
9+
version: "11.2-v1"
10+
storageType: Durable
11+
storage:
12+
storageClassName: "standard"
13+
accessModes:
14+
- ReadWriteOnce
15+
resources:
16+
requests:
17+
storage: 1Gi
18+
terminationPolicy: Delete
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: kubedb.com/v1alpha2
2+
kind: Postgres
3+
metadata:
4+
name: sample-postgres-2
5+
namespace: demo-2
6+
annotations:
7+
stash.appscode.com/backup-blueprint: postgres-backup-template
8+
stash.appscode.com/schedule: "*/3 * * * *"
9+
spec:
10+
version: "11.2-v1"
11+
storageType: Durable
12+
storage:
13+
storageClassName: "standard"
14+
accessModes:
15+
- ReadWriteOnce
16+
resources:
17+
requests:
18+
storage: 1Gi
19+
terminationPolicy: Delete
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: kubedb.com/v1alpha2
2+
kind: Postgres
3+
metadata:
4+
name: sample-postgres-3
5+
namespace: demo-3
6+
annotations:
7+
stash.appscode.com/backup-blueprint: postgres-backup-template
8+
params.stash.appscode.com/args: --no-owner --clean
9+
spec:
10+
version: "11.2-v1"
11+
storageType: Durable
12+
storage:
13+
storageClassName: "standard"
14+
accessModes:
15+
- ReadWriteOnce
16+
resources:
17+
requests:
18+
storage: 1Gi
19+
terminationPolicy: Delete
48.2 KB
Loading
48.4 KB
Loading
48.5 KB
Loading

0 commit comments

Comments
 (0)