Skip to content

Commit b2a8c5d

Browse files
committed
ref 643132: server backup schedules
Signed-off-by: Adrian Nackov <[email protected]>
1 parent 3653ed6 commit b2a8c5d

40 files changed

+3582
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ GOLANG_CI_ARGS ?= --allow-parallel-runners --timeout=5m --config=${GOLANG_CI_YAM
77
build:
88
@go build -o ./bin/stackit
99

10+
fmt:
11+
@gofmt -s -w .
12+
1013
# Setup and tool initialization tasks
1114
project-help:
1215
@$(SCRIPTS_BASE)/project.sh help
@@ -33,4 +36,4 @@ test:
3336
# Generate docs
3437
generate-docs:
3538
@echo "Generating docs..."
36-
@go run $(SCRIPTS_BASE)/generate.go
39+
@go run $(SCRIPTS_BASE)/generate.go

docs/stackit.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ stackit [flags]
4444
* [stackit rabbitmq](./stackit_rabbitmq.md) - Provides functionality for RabbitMQ
4545
* [stackit redis](./stackit_redis.md) - Provides functionality for Redis
4646
* [stackit secrets-manager](./stackit_secrets-manager.md) - Provides functionality for Secrets Manager
47+
* [stackit server](./stackit_server.md) - Provides functionality for Server
4748
* [stackit service-account](./stackit_service-account.md) - Provides functionality for service accounts
4849
* [stackit ske](./stackit_ske.md) - Provides functionality for SKE
4950

docs/stackit_config_set.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ stackit config set [flags]
4444
--redis-custom-endpoint string Redis API base URL, used in calls to this API
4545
--resource-manager-custom-endpoint string Resource Manager API base URL, used in calls to this API
4646
--secrets-manager-custom-endpoint string Secrets Manager API base URL, used in calls to this API
47+
--serverbackup-custom-endpoint string Server Backup API base URL, used in calls to this API
4748
--service-account-custom-endpoint string Service Account API base URL, used in calls to this API
4849
--session-time-limit string Maximum time before authentication is required again. After this time, you will be prompted to login again to execute commands that require authentication. Can't be larger than 24h. Requires authentication after being set to take effect. Examples: 3h, 5h30m40s (BETA: currently values greater than 2h have no effect)
4950
--ske-custom-endpoint string SKE API base URL, used in calls to this API

docs/stackit_config_unset.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ stackit config unset [flags]
4444
--redis-custom-endpoint Redis API base URL. If unset, uses the default base URL
4545
--resource-manager-custom-endpoint Resource Manager API base URL. If unset, uses the default base URL
4646
--secrets-manager-custom-endpoint Secrets Manager API base URL. If unset, uses the default base URL
47+
--serverbackup-custom-endpoint Server Backup base URL. If unset, uses the default base URL
4748
--service-account-custom-endpoint SKE API base URL. If unset, uses the default base URL
4849
--session-time-limit Maximum time before authentication is required again. If unset, defaults to 2h
4950
--ske-custom-endpoint SKE API base URL. If unset, uses the default base URL

docs/stackit_server.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## stackit server
2+
3+
Provides functionality for Server
4+
5+
### Synopsis
6+
7+
Provides functionality for Server.
8+
9+
```
10+
stackit server [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit server"
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
-y, --assume-yes If set, skips all confirmation prompts
23+
--async If set, runs the command asynchronously
24+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
25+
-p, --project-id string Project ID
26+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
27+
```
28+
29+
### SEE ALSO
30+
31+
* [stackit](./stackit.md) - Manage STACKIT resources using the command line
32+
* [stackit server backup-schedule](./stackit_server_backup-schedule.md) - Provides functionality for Server Backup Schedule
33+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## stackit server backup-schedule
2+
3+
Provides functionality for Server Backup Schedule
4+
5+
### Synopsis
6+
7+
Provides functionality for Server Backup Schedule.
8+
9+
```
10+
stackit server backup-schedule [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit server backup-schedule"
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
-y, --assume-yes If set, skips all confirmation prompts
23+
--async If set, runs the command asynchronously
24+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
25+
-p, --project-id string Project ID
26+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
27+
```
28+
29+
### SEE ALSO
30+
31+
* [stackit server](./stackit_server.md) - Provides functionality for Server
32+
* [stackit server backup-schedule create](./stackit_server_backup-schedule_create.md) - Creates a Server Backup Schedule
33+
* [stackit server backup-schedule delete](./stackit_server_backup-schedule_delete.md) - Deletes a Server Backup Schedule
34+
* [stackit server backup-schedule describe](./stackit_server_backup-schedule_describe.md) - Shows details of a Server Backup Schedule
35+
* [stackit server backup-schedule disable](./stackit_server_backup-schedule_disable.md) - Disables Server Backup for a project
36+
* [stackit server backup-schedule enable](./stackit_server_backup-schedule_enable.md) - Enables Server Backup Schedules for a project
37+
* [stackit server backup-schedule list](./stackit_server_backup-schedule_list.md) - Lists all server backup schedules
38+
* [stackit server backup-schedule update](./stackit_server_backup-schedule_update.md) - Updates a Server Backup Schedule
39+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
## stackit server backup-schedule create
2+
3+
Creates a Server Backup Schedule
4+
5+
### Synopsis
6+
7+
Creates a Server Backup Schedule.
8+
9+
```
10+
stackit server backup-schedule create [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Create a Server Backup Schedule with name "myschedule" and backup name "mybackup"
17+
$ stackit server backup-schedule create --server-id xxx --backup-name=mybackup --backup-schedule-name=myschedule
18+
19+
Create a Server Backup Schedule with name "myschedule", backup name "mybackup" and retention period of 5 days
20+
$ stackit server backup-schedule create --server-id xxx --backup-name=mybackup --backup-schedule-name=myschedule --backup-retention-period=5
21+
```
22+
23+
### Options
24+
25+
```
26+
-b, --backup-name string Backup name
27+
-d, --backup-retention-period int Backup retention period (in days) (default 14)
28+
-n, --backup-schedule-name string Backup schedule name
29+
-i, --backup-volume-ids string Backup volume ids, as comma separated UUID values.
30+
-e, --enabled Is the server backup schedule enabled (default true)
31+
-h, --help Help for "stackit server backup-schedule create"
32+
-r, --rrule string Backup RRULE (recurrence rule) (default "DTSTART;TZID=Europe/Sofia:20200803T023000 RRULE:FREQ=DAILY;INTERVAL=1")
33+
-s, --server-id string Server ID
34+
```
35+
36+
### Options inherited from parent commands
37+
38+
```
39+
-y, --assume-yes If set, skips all confirmation prompts
40+
--async If set, runs the command asynchronously
41+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
42+
-p, --project-id string Project ID
43+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
44+
```
45+
46+
### SEE ALSO
47+
48+
* [stackit server backup-schedule](./stackit_server_backup-schedule.md) - Provides functionality for Server Backup Schedule
49+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## stackit server backup-schedule delete
2+
3+
Deletes a Server Backup Schedule
4+
5+
### Synopsis
6+
7+
Deletes a Server Backup Schedule.
8+
9+
```
10+
stackit server backup-schedule delete SCHEDULE_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Delete a Server Backup Schedule with ID "xxx" for server "zzz"
17+
$ stackit server backup-schedule delete --server-id=zzz xxx
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit server backup-schedule delete"
24+
-s, --server-id string Server ID
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-y, --assume-yes If set, skips all confirmation prompts
31+
--async If set, runs the command asynchronously
32+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
33+
-p, --project-id string Project ID
34+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
35+
```
36+
37+
### SEE ALSO
38+
39+
* [stackit server backup-schedule](./stackit_server_backup-schedule.md) - Provides functionality for Server Backup Schedule
40+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## stackit server backup-schedule describe
2+
3+
Shows details of a Server Backup Schedule
4+
5+
### Synopsis
6+
7+
Shows details of a Server Backup Schedule.
8+
9+
```
10+
stackit server backup-schedule describe BACKUP_SCHEDULE_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Get details of a Server Backup Schedule with id "my-schedule-id"
17+
$ stackit server backup schedule describe my-schedule-id
18+
19+
Get details of a Server Backup Schedule with id "my-schedule-id" in JSON format
20+
$ stackit server backup schedule describe my-schedule-id --output-format json
21+
```
22+
23+
### Options
24+
25+
```
26+
-h, --help Help for "stackit server backup-schedule describe"
27+
-s, --server-id string Server ID
28+
```
29+
30+
### Options inherited from parent commands
31+
32+
```
33+
-y, --assume-yes If set, skips all confirmation prompts
34+
--async If set, runs the command asynchronously
35+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
36+
-p, --project-id string Project ID
37+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
38+
```
39+
40+
### SEE ALSO
41+
42+
* [stackit server backup-schedule](./stackit_server_backup-schedule.md) - Provides functionality for Server Backup Schedule
43+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## stackit server backup-schedule disable
2+
3+
Disables Server Backup for a project
4+
5+
### Synopsis
6+
7+
Disables Server Backup for a project.
8+
9+
```
10+
stackit server backup-schedule disable [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Disable Server Backups functionality for your project.
17+
$ stackit server backup-schedule disable
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit server backup-schedule disable"
24+
-s, --server-id string Server ID
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-y, --assume-yes If set, skips all confirmation prompts
31+
--async If set, runs the command asynchronously
32+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
33+
-p, --project-id string Project ID
34+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
35+
```
36+
37+
### SEE ALSO
38+
39+
* [stackit server backup-schedule](./stackit_server_backup-schedule.md) - Provides functionality for Server Backup Schedule
40+

0 commit comments

Comments
 (0)