Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
Signed-off-by: Anisur Rahman <[email protected]>
  • Loading branch information
anisurrahman75 committed Sep 24, 2024
1 parent abcc075 commit 673b47d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
namespace: demo
spec:
manifestOptions:
restoreNamespace: dev
postgres:
db: true
restoreNamespace: dev
dataSource:
repository: gcs-postgres-repo
snapshot: latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ Let's create a secret called `encrypt-secret` with the Restic password,
```bash
$ echo -n 'changeit' > RESTIC_PASSWORD
$ kubectl create secret generic -n demo encrypt-secret \
--from-file=./RESTIC_PASSWORD \
--from-file=./RESTIC_PASSWORD
secret "encrypt-secret" created
```

Expand Down Expand Up @@ -628,8 +628,8 @@ metadata:
namespace: demo
spec:
manifestOptions:
restoreNamespace: dev
postgres:
restoreNamespace: dev
db: true
dataSource:
repository: gcs-postgres-repo
Expand Down Expand Up @@ -682,7 +682,6 @@ sample-postgres 16.1 Ready 9m46s

The output confirms that the `PostgreSQL` database has been successfully created with the same configuration as it had at the time of backup.


#### Verify Restored Data:

In this section, we are going to verify whether the desired data has been restored successfully. We are going to connect to the database server and check whether the database and the table we created earlier in the original database are restored.
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/postgres/backup/kubestash/auto-backup/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Let's create a secret called `encrypt-secret` with the Restic password,
```bash
$ echo -n 'changeit' > RESTIC_PASSWORD
$ kubectl create secret generic -n demo encrypt-secret \
--from-file=./RESTIC_PASSWORD \
--from-file=./RESTIC_PASSWORD
secret "encrypt-secret" created
```

Expand Down Expand Up @@ -373,12 +373,12 @@ We can see from the above output that the backup session has succeeded. Now, we

**Verify Backup:**

Once a backup is complete, KubeStash will update the respective `Repository` CR to reflect the backup. Check that the repository `sample-postgres-backup` has been updated by the following command,
Once a backup is complete, KubeStash will update the respective `Repository` CR to reflect the backup. Check that the repository `default-blueprint` has been updated by the following command,

```bash
$ kubectl get repository -n demo default-blueprint
NAME INTEGRITY SNAPSHOT-COUNT SIZE PHASE LAST-SUCCESSFUL-BACKUP AGE
default-blueprint true 3 1.559 KiB Ready 80s 7m32s
default-blueprint true 1 1.559 KiB Ready 80s 7m32s
```

At this moment we have one `Snapshot`. Run the following command to check the respective `Snapshot` which represents the state of a backup run for an application.
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/postgres/backup/kubestash/logical/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ Let's create a secret called `encrypt-secret` with the Restic password,
```bash
$ echo -n 'changeit' > RESTIC_PASSWORD
$ kubectl create secret generic -n demo encrypt-secret \
--from-file=./RESTIC_PASSWORD \
--from-file=./RESTIC_PASSWORD
secret "encrypt-secret" created
```

Expand Down

0 comments on commit 673b47d

Please sign in to comment.