Skip to content

Commit

Permalink
Slight tweak to Long message
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Landreth committed Oct 26, 2023
1 parent 99c741e commit 190e814
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 28 deletions.
27 changes: 15 additions & 12 deletions docs/content/reference/pgo_backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Backup cluster

Backup allows you to backup a PostgreSQL cluster either by using
the current "spec.backups.pgbackrest.manual" settings on the PostgreSQL cluster
or by using flags to write your settings. Overwriting those settings requires
or by using flags to write your settings. Overwriting those settings may require
the --force-conflicts flag.

### RBAC Requirements
Expand All @@ -26,22 +26,25 @@ pgo backup CLUSTER_NAME [flags]
### Examples

```
# Trigger a backup on the 'hippo' postgrescluster using the current spec options
# Note: "spec.backups.pgbackrest.manual.repoName" has to exist for the backup to begin
pgo backup hippo
# Update the 'backups.pgbackrest.manual.repoName' and 'backups.pgbackrest.manual.options' fields
# on the 'hippo' postgrescluster and trigger a backup
pgo backup hippo --repoName="repo1" --options="--type=full"
# Resolve ownership conflict
pgo backup hippo --force-conflicts
# Trigger a backup on the 'hippo' postgrescluster using the current spec options
# Note: "spec.backups.pgbackrest.manual.repoName" has to exist for the backup to begin
pgo backup hippo
# Update the 'backups.pgbackrest.manual.repoName' and 'backups.pgbackrest.manual.options' fields
# on the 'hippo' postgrescluster and trigger a backup
pgo backup hippo --repoName="repo1" --options="--type=full"
# Resolve ownership conflict
pgo backup hippo --force-conflicts
### Example output
postgresclusters/hippo backup initiated
```

### Options

```
--force-conflicts take ownership and overwrite the backup annotation
--force-conflicts take ownership and overwrite the backup settings
-h, --help help for backup
--options stringArray options for taking a backup; can be used multiple times
--repoName string repoName to backup to
Expand Down
4 changes: 1 addition & 3 deletions docs/content/reference/pgo_create_postgrescluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ pgo create postgrescluster CLUSTER_NAME [flags]
# Create a postgrescluster
pgo create postgrescluster hippo
```
### Example output
```
### Example output
postgresclusters/hippo created
```

Expand Down
4 changes: 1 addition & 3 deletions docs/content/reference/pgo_delete_postgrescluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ pgo delete postgrescluster CLUSTER_NAME [flags]
# Delete a postgrescluster
pgo delete postgrescluster hippo
```
### Example output
```
### Example output
WARNING: Deleting a postgrescluster is destructive and data retention is dependent on PV configuration.
Are you sure you want to continue? (yes/no): yes
postgresclusters/hippo deleted
Expand Down
15 changes: 15 additions & 0 deletions docs/content/reference/pgo_restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@ pgo restore CLUSTER_NAME [flags]
### Examples

```
# Restore the 'hippo' cluster using the latest backup and replay all available WAL
pgo restore hippo --repoName repo1
# Restore the 'hippo' cluster to a specific point in time
pgo restore hippo --repoName repo1 --options '--type=time --target="2021-06-09 14:15:11-04"'
### Example output
WARNING: You are about to restore from pgBackRest with {options:[] repoName:repo1}
WARNING: This action is destructive and PostgreSQL will be unavailable while its data is restored.
Do you want to continue? (yes/no): yes
# Resolve ownership conflict
pgo restore hippo --force-conflicts
```

### Options
Expand Down
2 changes: 0 additions & 2 deletions docs/content/reference/pgo_restore_disable.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ pgo restore disable CLUSTER_NAME [flags]
# Disable the restore section on the 'hippo' cluster
pgo restore disable hippo
```
### Example output
```
postgresclusters/hippo patched
```

Expand Down
2 changes: 0 additions & 2 deletions docs/content/reference/pgo_show_backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ pgo show backup hippo --output=json
# Show one repository of the 'hippo' postgrescluster
pgo show backup hippo --repoName=repo1
```
### Example output
```
stanza: db
status: ok
cipher: none
Expand Down
2 changes: 0 additions & 2 deletions docs/content/reference/pgo_support_export.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ kubectl pgo support export daisy --output . --pg-logs-count 2
# This is only required when monitoring is not deployed in the PostgresCluster's namespace.
kubectl pgo support export daisy --monitoring-namespace another-namespace --output .
```
### Example output
```
┌────────────────────────────────────────────────────────────────
| PGO CLI Support Export Tool
| The support export tool will collect information that is
Expand Down
2 changes: 0 additions & 2 deletions docs/content/reference/pgo_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ pgo version [flags]
# Request the version of the client and the operator
pgo version
```
### Example output
```
Client Version: v0.3.0
Operator Version: v5.5.0
```
Expand Down
3 changes: 1 addition & 2 deletions internal/cmd/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func newBackupCommand(config *internal.Config) *cobra.Command {
Short: "Backup cluster",
Long: `Backup allows you to backup a PostgreSQL cluster either by using
the current "spec.backups.pgbackrest.manual" settings on the PostgreSQL cluster
or by using flags to write your settings. Overwriting those settings requires
or by using flags to write your settings. Overwriting those settings may require
the --force-conflicts flag.
### RBAC Requirements
Expand All @@ -58,7 +58,6 @@ pgo backup hippo --repoName="repo1" --options="--type=full"
# Resolve ownership conflict
pgo backup hippo --force-conflicts
`)
### Example output
postgresclusters/hippo backup initiated`)
Expand Down

0 comments on commit 190e814

Please sign in to comment.