|
| 1 | +# API Reference for ArangoBackup V1 |
| 2 | + |
| 3 | +## Spec |
| 4 | + |
| 5 | +### .spec.backoff.iterations: int |
| 6 | + |
| 7 | +Iterations defines number of iterations before reaching MaxDelay. Default to 5 |
| 8 | + |
| 9 | +[Code Reference](/pkg/apis/backup/v1/backup_spec_backoff.go#L31) |
| 10 | + |
| 11 | +### .spec.backoff.max_delay: int |
| 12 | + |
| 13 | +MaxDelay defines maximum delay in seconds. Default to 600 |
| 14 | + |
| 15 | +[Code Reference](/pkg/apis/backup/v1/backup_spec_backoff.go#L29) |
| 16 | + |
| 17 | +### .spec.backoff.max_iterations: int |
| 18 | + |
| 19 | +MaxIterations defines maximum number of iterations after backoff will be disabled. Default to nil (no limit) |
| 20 | + |
| 21 | +[Code Reference](/pkg/apis/backup/v1/backup_spec_backoff.go#L33) |
| 22 | + |
| 23 | +### .spec.backoff.min_delay: int |
| 24 | + |
| 25 | +MinDelay defines minimum delay in seconds. Default to 30 |
| 26 | + |
| 27 | +[Code Reference](/pkg/apis/backup/v1/backup_spec_backoff.go#L27) |
| 28 | + |
| 29 | +### .spec.deployment.name: string |
| 30 | + |
| 31 | +Name of the ArangoDeployment Custom Resource within same namespace as ArangoBackup Custom Resource. |
| 32 | + |
| 33 | +This field is **immutable**: can't be changed after backup creation |
| 34 | + |
| 35 | +[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L54) |
| 36 | + |
| 37 | +### .spec.download.credentialsSecretName: string |
| 38 | + |
| 39 | +CredentialsSecretName is the name of the secret used while accessing repository |
| 40 | + |
| 41 | +Links: |
| 42 | +* [Defining a secret for backup upload or download](/docs/backup-resource.md#defining-a-secret-for-backup-upload-or-download) |
| 43 | + |
| 44 | +This field is **immutable**: can't be changed after backup creation |
| 45 | + |
| 46 | +[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L81) |
| 47 | + |
| 48 | +### .spec.download.id: string |
| 49 | + |
| 50 | +ID of the ArangoBackup to be downloaded |
| 51 | + |
| 52 | +This field is **immutable**: can't be changed after backup creation |
| 53 | + |
| 54 | +[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L89) |
| 55 | + |
| 56 | +### .spec.download.repositoryURL: string |
| 57 | + |
| 58 | +RepositoryURL is the URL path for file storage |
| 59 | +Same repositoryURL needs to be defined in `credentialsSecretName` if protocol is other than local. |
| 60 | +Format: `<protocol>:/<path>` |
| 61 | + |
| 62 | +Links: |
| 63 | +* [rclone.org](https://rclone.org/docs/#syntax-of-remote-paths) |
| 64 | + |
| 65 | +Example: |
| 66 | +```yaml |
| 67 | +s3://my-bucket/test |
| 68 | +azure://test |
| 69 | +``` |
| 70 | + |
| 71 | +This field is **immutable**: can't be changed after backup creation |
| 72 | + |
| 73 | +[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L77) |
| 74 | + |
| 75 | +### .spec.lifetime: int64 |
| 76 | + |
| 77 | +Lifetime is the time after which the backup will be deleted. Format: "1.5h" or "2h45m". |
| 78 | + |
| 79 | +[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L47) |
| 80 | + |
| 81 | +### .spec.options.allowInconsistent: bool |
| 82 | + |
| 83 | +AllowInconsistent flag for Backup creation request. |
| 84 | +If this value is set to true, backup is taken even if we are not able to acquire lock. |
| 85 | + |
| 86 | +Default Value: false |
| 87 | + |
| 88 | +This field is **immutable**: can't be changed after backup creation |
| 89 | + |
| 90 | +[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L66) |
| 91 | + |
| 92 | +### .spec.options.timeout: float32 |
| 93 | + |
| 94 | +Timeout for Backup creation request in seconds. |
| 95 | + |
| 96 | +Default Value: 30 |
| 97 | + |
| 98 | +This field is **immutable**: can't be changed after backup creation |
| 99 | + |
| 100 | +[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L61) |
| 101 | + |
| 102 | +### .spec.policyName: string |
| 103 | + |
| 104 | +PolicyName name of the ArangoBackupPolicy which created this Custom Resource |
| 105 | + |
| 106 | +This field is **immutable**: can't be changed after backup creation |
| 107 | + |
| 108 | +[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L42) |
| 109 | + |
| 110 | +### .spec.upload.credentialsSecretName: string |
| 111 | + |
| 112 | +CredentialsSecretName is the name of the secret used while accessing repository |
| 113 | + |
| 114 | +Links: |
| 115 | +* [Defining a secret for backup upload or download](/docs/backup-resource.md#defining-a-secret-for-backup-upload-or-download) |
| 116 | + |
| 117 | +This field is **immutable**: can't be changed after backup creation |
| 118 | + |
| 119 | +[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L81) |
| 120 | + |
| 121 | +### .spec.upload.repositoryURL: string |
| 122 | + |
| 123 | +RepositoryURL is the URL path for file storage |
| 124 | +Same repositoryURL needs to be defined in `credentialsSecretName` if protocol is other than local. |
| 125 | +Format: `<protocol>:/<path>` |
| 126 | + |
| 127 | +Links: |
| 128 | +* [rclone.org](https://rclone.org/docs/#syntax-of-remote-paths) |
| 129 | + |
| 130 | +Example: |
| 131 | +```yaml |
| 132 | +s3://my-bucket/test |
| 133 | +azure://test |
| 134 | +``` |
| 135 | + |
| 136 | +This field is **immutable**: can't be changed after backup creation |
| 137 | + |
| 138 | +[Code Reference](/pkg/apis/backup/v1/backup_spec.go#L77) |
| 139 | + |
| 140 | +## Status |
| 141 | + |
| 142 | +### .status.available: bool |
| 143 | + |
| 144 | +Available Determines if we can restore from ArangoBackup |
| 145 | + |
| 146 | +[Code Reference](/pkg/apis/backup/v1/backup_status.go#L36) |
| 147 | + |
| 148 | +### .status.backoff.iterations: int |
| 149 | + |
| 150 | +[Code Reference](/pkg/apis/backup/v1/backup_status_backoff.go#L30) |
| 151 | + |
| 152 | +### .status.backup.downloaded: bool |
| 153 | + |
| 154 | +Downloaded Determines if ArangoBackup has been downloaded. |
| 155 | + |
| 156 | +[Code Reference](/pkg/apis/backup/v1/backup_status.go#L66) |
| 157 | + |
| 158 | +### .status.backup.id: string |
| 159 | + |
| 160 | +[Code Reference](/pkg/apis/backup/v1/backup_status.go#L56) |
| 161 | + |
| 162 | +### .status.backup.imported: bool |
| 163 | + |
| 164 | +[Code Reference](/pkg/apis/backup/v1/backup_status.go#L67) |
| 165 | + |
| 166 | +### .status.backup.keys: []string |
| 167 | + |
| 168 | +[Code Reference](/pkg/apis/backup/v1/backup_status.go#L70) |
| 169 | + |
| 170 | +### .status.backup.numberOfDBServers: uint |
| 171 | + |
| 172 | +NumberOfDBServers Cluster size of the Backup in ArangoDB |
| 173 | + |
| 174 | +[Code Reference](/pkg/apis/backup/v1/backup_status.go#L62) |
| 175 | + |
| 176 | +### .status.backup.potentiallyInconsistent: bool |
| 177 | + |
| 178 | +[Code Reference](/pkg/apis/backup/v1/backup_status.go#L58) |
| 179 | + |
| 180 | +### .status.backup.sizeInBytes: uint64 |
| 181 | + |
| 182 | +SizeInBytes Size of the Backup in ArangoDB. |
| 183 | + |
| 184 | +[Code Reference](/pkg/apis/backup/v1/backup_status.go#L60) |
| 185 | + |
| 186 | +### .status.backup.uploaded: bool |
| 187 | + |
| 188 | +Uploaded Determines if ArangoBackup has been uploaded |
| 189 | + |
| 190 | +[Code Reference](/pkg/apis/backup/v1/backup_status.go#L64) |
| 191 | + |
| 192 | +### .status.backup.version: string |
| 193 | + |
| 194 | +[Code Reference](/pkg/apis/backup/v1/backup_status.go#L57) |
| 195 | + |
| 196 | +### .status.message: string |
| 197 | + |
| 198 | +Message for the state this object is in. |
| 199 | + |
| 200 | +[Code Reference](/pkg/apis/backup/v1/backup_state.go#L86) |
| 201 | + |
| 202 | +### .status.progress.jobID: string |
| 203 | + |
| 204 | +JobID ArangoDB job ID for uploading or downloading |
| 205 | + |
| 206 | +[Code Reference](/pkg/apis/backup/v1/backup_state.go#L109) |
| 207 | + |
| 208 | +### .status.progress.progress: string |
| 209 | + |
| 210 | +Progress ArangoDB job progress in percents |
| 211 | + |
| 212 | +Example: |
| 213 | +```yaml |
| 214 | +90% |
| 215 | +``` |
| 216 | + |
| 217 | +[Code Reference](/pkg/apis/backup/v1/backup_state.go#L112) |
| 218 | + |
| 219 | +### .status.state: string |
| 220 | + |
| 221 | +State holds the current high level state of the backup |
| 222 | + |
| 223 | +Possible Values: |
| 224 | +* Pending (default) - state in which Custom Resource is queued. If Backup is possible changed to "Scheduled" |
| 225 | +* Scheduled - state which will start create/download process |
| 226 | +* Download - state in which download request will be created on ArangoDB |
| 227 | +* DownloadError - state when download failed |
| 228 | +* Downloading - state for downloading progress |
| 229 | +* Create - state for creation, field available set to true |
| 230 | +* Upload - state in which upload request will be created on ArangoDB |
| 231 | +* Uploading - state for uploading progress |
| 232 | +* UploadError - state when uploading failed |
| 233 | +* Ready - state when Backup is finished |
| 234 | +* Deleted - state when Backup was once in ready, but has been deleted |
| 235 | +* Failed - state for failure |
| 236 | +* Unavailable - state when Backup is not available on the ArangoDB. It can happen in case of upgrades, node restarts etc. |
| 237 | + |
| 238 | +[Code Reference](/pkg/apis/backup/v1/backup_state.go#L80) |
| 239 | + |
0 commit comments