2024-01-08 11:28:31 +00:00
|
|
|
---
|
|
|
|
layout: page
|
|
|
|
parent: CRD reference
|
|
|
|
title: ArangoBackup V1
|
|
|
|
---
|
|
|
|
|
2023-10-20 10:25:30 +00:00
|
|
|
# API Reference for ArangoBackup V1
|
|
|
|
|
|
|
|
## Spec
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .spec.backoff.iterations
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec_backoff.go#L31)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
Iterations defines number of iterations before reaching MaxDelay. Default to 5
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
|
|
|
|
|
|
|
### .spec.backoff.max_delay
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec_backoff.go#L29)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
MaxDelay defines maximum delay in seconds. Default to 600
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .spec.backoff.max_iterations
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec_backoff.go#L33)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
MaxIterations defines maximum number of iterations after backoff will be disabled. Default to nil (no limit)
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
|
|
|
|
|
|
|
### .spec.backoff.min_delay
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec_backoff.go#L27)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
MinDelay defines minimum delay in seconds. Default to 30
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .spec.deployment.name
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec.go#L54)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
Name of the ArangoDeployment Custom Resource within same namespace as ArangoBackup Custom Resource.
|
|
|
|
|
|
|
|
This field is **immutable**: can't be changed after backup creation
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
|
|
|
|
2024-01-19 11:58:11 +00:00
|
|
|
### .spec.download.autoDelete
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `boolean` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec.go#L84)</sup>
|
2024-01-19 11:58:11 +00:00
|
|
|
|
|
|
|
AutoDelete removes the ArangoBackup resource (which removes the backup from the cluster) after successful upload
|
|
|
|
|
|
|
|
Default Value: `false`
|
|
|
|
|
|
|
|
***
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .spec.download.credentialsSecretName
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec.go#L81)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
CredentialsSecretName is the name of the secret used while accessing repository
|
|
|
|
|
|
|
|
Links:
|
2024-01-16 08:56:17 +00:00
|
|
|
* [Defining a secret for backup upload or download](../backup-resource.md#defining-a-secret-for-backup-upload-or-download)
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
This field is **immutable**: can't be changed after backup creation
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .spec.download.id
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec.go#L92)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
ID of the ArangoBackup to be downloaded
|
|
|
|
|
|
|
|
This field is **immutable**: can't be changed after backup creation
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
|
|
|
|
|
|
|
### .spec.download.repositoryURL
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec.go#L77)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
RepositoryURL is the URL path for file storage
|
|
|
|
Same repositoryURL needs to be defined in `credentialsSecretName` if protocol is other than local.
|
|
|
|
Format: `<protocol>:/<path>`
|
|
|
|
|
|
|
|
Links:
|
|
|
|
* [rclone.org](https://rclone.org/docs/#syntax-of-remote-paths)
|
|
|
|
|
|
|
|
Example:
|
|
|
|
```yaml
|
|
|
|
s3://my-bucket/test
|
|
|
|
azure://test
|
|
|
|
```
|
|
|
|
|
|
|
|
This field is **immutable**: can't be changed after backup creation
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .spec.lifetime
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec.go#L47)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
Lifetime is the time after which the backup will be deleted. Format: "1.5h" or "2h45m".
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
|
|
|
|
|
|
|
### .spec.options.allowInconsistent
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `boolean` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec.go#L66)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
AllowInconsistent flag for Backup creation request.
|
|
|
|
If this value is set to true, backup is taken even if we are not able to acquire lock.
|
|
|
|
|
2023-11-07 18:50:23 +00:00
|
|
|
Default Value: `false`
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
This field is **immutable**: can't be changed after backup creation
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .spec.options.timeout
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `number` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec.go#L61)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-08 10:21:22 +00:00
|
|
|
Timeout for Backup creation request in seconds. Works only when AsyncBackupCreation feature is set to false.
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-07 18:50:23 +00:00
|
|
|
Default Value: `30`
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
This field is **immutable**: can't be changed after backup creation
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
|
|
|
|
|
|
|
### .spec.policyName
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec.go#L42)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
PolicyName name of the ArangoBackupPolicy which created this Custom Resource
|
|
|
|
|
|
|
|
This field is **immutable**: can't be changed after backup creation
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2024-01-19 11:58:11 +00:00
|
|
|
### .spec.upload.autoDelete
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `boolean` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec.go#L84)</sup>
|
2024-01-19 11:58:11 +00:00
|
|
|
|
|
|
|
AutoDelete removes the ArangoBackup resource (which removes the backup from the cluster) after successful upload
|
|
|
|
|
|
|
|
Default Value: `false`
|
|
|
|
|
|
|
|
***
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .spec.upload.credentialsSecretName
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec.go#L81)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
CredentialsSecretName is the name of the secret used while accessing repository
|
|
|
|
|
|
|
|
Links:
|
2024-01-16 08:56:17 +00:00
|
|
|
* [Defining a secret for backup upload or download](../backup-resource.md#defining-a-secret-for-backup-upload-or-download)
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
This field is **immutable**: can't be changed after backup creation
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
|
|
|
|
|
|
|
### .spec.upload.repositoryURL
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_spec.go#L77)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
RepositoryURL is the URL path for file storage
|
|
|
|
Same repositoryURL needs to be defined in `credentialsSecretName` if protocol is other than local.
|
|
|
|
Format: `<protocol>:/<path>`
|
|
|
|
|
|
|
|
Links:
|
|
|
|
* [rclone.org](https://rclone.org/docs/#syntax-of-remote-paths)
|
|
|
|
|
|
|
|
Example:
|
|
|
|
```yaml
|
|
|
|
s3://my-bucket/test
|
|
|
|
azure://test
|
|
|
|
```
|
|
|
|
|
|
|
|
This field is **immutable**: can't be changed after backup creation
|
|
|
|
|
|
|
|
## Status
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .status.available
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `boolean` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_status.go#L36)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
Available Determines if we can restore from ArangoBackup
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .status.backoff.iterations
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_status_backoff.go#L30)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
|
|
|
|
|
|
|
### .status.backup.downloaded
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `boolean` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_status.go#L66)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
Downloaded Determines if ArangoBackup has been downloaded.
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
|
|
|
|
|
|
|
### .status.backup.id
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_status.go#L56)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .status.backup.imported
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `boolean` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_status.go#L67)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .status.backup.keys
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `array` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_status.go#L70)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
|
|
|
|
|
|
|
### .status.backup.numberOfDBServers
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_status.go#L62)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
NumberOfDBServers Cluster size of the Backup in ArangoDB
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
|
|
|
|
|
|
|
### .status.backup.potentiallyInconsistent
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `boolean` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_status.go#L58)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .status.backup.sizeInBytes
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `integer` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_status.go#L60)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
SizeInBytes Size of the Backup in ArangoDB.
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .status.backup.uploaded
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `boolean` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_status.go#L64)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
Uploaded Determines if ArangoBackup has been uploaded
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
|
|
|
|
|
|
|
### .status.backup.version
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_status.go#L57)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .status.message
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_state.go#L91)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
Message for the state this object is in.
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
|
|
|
|
|
|
|
### .status.progress.jobID
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_state.go#L114)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
JobID ArangoDB job ID for uploading or downloading
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
### .status.progress.progress
|
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_state.go#L117)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
Progress ArangoDB job progress in percents
|
|
|
|
|
|
|
|
Example:
|
|
|
|
```yaml
|
|
|
|
90%
|
|
|
|
```
|
|
|
|
|
2023-11-09 09:23:56 +00:00
|
|
|
***
|
|
|
|
|
|
|
|
### .status.state
|
2023-10-20 10:25:30 +00:00
|
|
|
|
2024-10-14 14:35:16 +00:00
|
|
|
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.43/pkg/apis/backup/v1/backup_state.go#L85)</sup>
|
2023-10-20 10:25:30 +00:00
|
|
|
|
|
|
|
State holds the current high level state of the backup
|
|
|
|
|
|
|
|
Possible Values:
|
2024-01-04 12:51:28 +00:00
|
|
|
* `""` (default) - state for un-initialized Custom Resource
|
|
|
|
* `"Pending"` - state in which Custom Resource is queued. If Backup is possible changed to "Scheduled"
|
|
|
|
* `"Scheduled"` - state which will start create/download process
|
|
|
|
* `"Download"` - state in which download request will be created on ArangoDB
|
|
|
|
* `"DownloadError"` - state when download failed
|
|
|
|
* `"Downloading"` - state for downloading progress
|
|
|
|
* `"Create"` - state for backup when it is scheduled for creation, field available set to true
|
|
|
|
* `"Creating"` - state for backup when it is creating
|
|
|
|
* `"CreateError"` - state for backup when it is creation failed
|
|
|
|
* `"Upload"` - state in which upload request will be created on ArangoDB
|
|
|
|
* `"Uploading"` - state for uploading progress
|
|
|
|
* `"UploadError"` - state when uploading failed
|
|
|
|
* `"Ready"` - state when Backup is finished
|
|
|
|
* `"Deleted"` - state when Backup was once in ready, but has been deleted
|
|
|
|
* `"Failed"` - state for failure
|
|
|
|
* `"Unavailable"` - state when Backup is not available on the ArangoDB. It can happen in case of upgrades, node restarts etc.
|
2023-10-20 10:25:30 +00:00
|
|
|
|