1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00
kube-arangodb/docs/api/ArangoBackup.V1.md

323 lines
9.5 KiB
Markdown
Raw Normal View History

---
layout: page
parent: CRD reference
title: ArangoBackup V1
---
# API Reference for ArangoBackup V1
## Spec
### .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>
Iterations defines number of iterations before reaching MaxDelay. Default to 5
***
### .spec.backoff.max_delay
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>
MaxDelay defines maximum delay in seconds. Default to 600
***
### .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>
MaxIterations defines maximum number of iterations after backoff will be disabled. Default to nil (no limit)
***
### .spec.backoff.min_delay
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>
MinDelay defines minimum delay in seconds. Default to 30
***
### .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>
Name of the ArangoDeployment Custom Resource within same namespace as ArangoBackup Custom Resource.
This field is **immutable**: can't be changed after backup creation
***
### .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>
AutoDelete removes the ArangoBackup resource (which removes the backup from the cluster) after successful upload
Default Value: `false`
***
### .spec.download.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>
CredentialsSecretName is the name of the secret used while accessing repository
Links:
* [Defining a secret for backup upload or download](../backup-resource.md#defining-a-secret-for-backup-upload-or-download)
This field is **immutable**: can't be changed after backup creation
***
### .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>
ID of the ArangoBackup to be downloaded
This field is **immutable**: can't be changed after backup creation
***
### .spec.download.repositoryURL
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>
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
***
### .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>
Lifetime is the time after which the backup will be deleted. Format: "1.5h" or "2h45m".
***
### .spec.options.allowInconsistent
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>
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.
Default Value: `false`
This field is **immutable**: can't be changed after backup creation
***
### .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-11-08 10:21:22 +00:00
Timeout for Backup creation request in seconds. Works only when AsyncBackupCreation feature is set to false.
Default Value: `30`
This field is **immutable**: can't be changed after backup creation
***
### .spec.policyName
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>
PolicyName name of the ArangoBackupPolicy which created this Custom Resource
This field is **immutable**: can't be changed after backup creation
***
### .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>
AutoDelete removes the ArangoBackup resource (which removes the backup from the cluster) after successful upload
Default Value: `false`
***
### .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>
CredentialsSecretName is the name of the secret used while accessing repository
Links:
* [Defining a secret for backup upload or download](../backup-resource.md#defining-a-secret-for-backup-upload-or-download)
This field is **immutable**: can't be changed after backup creation
***
### .spec.upload.repositoryURL
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>
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
### .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>
Available Determines if we can restore from ArangoBackup
***
### .status.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_status_backoff.go#L30)</sup>
***
### .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>
Downloaded Determines if ArangoBackup has been downloaded.
***
### .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>
***
### .status.backup.imported
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>
***
### .status.backup.keys
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>
***
### .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>
NumberOfDBServers Cluster size of the Backup in ArangoDB
***
### .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>
***
### .status.backup.sizeInBytes
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>
SizeInBytes Size of the Backup in ArangoDB.
***
### .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>
Uploaded Determines if ArangoBackup has been uploaded
***
### .status.backup.version
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>
***
### .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>
Message for the state this object is in.
***
### .status.progress.jobID
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>
JobID ArangoDB job ID for uploading or downloading
***
### .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>
Progress ArangoDB job progress in percents
Example:
```yaml
90%
```
***
### .status.state
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>
State holds the current high level state of the backup
Possible Values:
* `""` (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.