Backups
On this page
Note
Operator 1.backup-s3-endpoint and backup-compatibility-mode.
-
Upgrading to Operator 1.
2. 1, which contains these parameters -
Using CR spec
backupSpec.ands3Endpoint backupSpec.to specify their valuescompatibilityMode
Backup Configurations
You may specify backup details via the backupSpec in the CR, using the fields following this example:.
backupSpec:CloudServiceProvider: AWSbackupImage: gcr.io/singlestore-public/cellscripts:20230424161715-64bdc8ffbucketName: 29fce172-3e50-41d9-9440-bf378475cc1bs3Endpoint: http://10.43.241.252:8005s3Region: us-west-1schedule: 13 20 * * *secretName: backup-credentials
Where:
-
CloudServiceProvider: Name of cloud service provider of the backup bucket (aws | azure | gcp). -
backupImage: When unspecified, the Operator will use a default image. -
bucketName: Name of the bucket in which to store backups of user databases. -
compatibilityMode: Primarily for GCS, compatibility mode for backups of user databases.Refer to BACKUP DATABASE for more information. -
objectMetaOverrides: Label and Annotation subfields allow for overriding the labels and annotations of the pods of the cronjob -
s3Endpoint: Location of S3-compatible endpoint to use for backups of user databases. -
s3Region: Name of the AWS S3 region in which the target bucket resides. -
schedule: Default schedule for initial full backups of user databases, incronformat.If
scheduleIncrementalis specified, the scheduled job will perform a backup usingBACKUP DATABASE ., otherwise, it will perform a plain. . WITH INIT . . . BACKUP DATABASEwithout using theWITH INIToption. -
scheduleIncremental: Default schedule for incremental backups of user databases, incronformat.If this is configured, it will perform an incremental backup using
BACKUP DATABASE .option if there is already a backup created by using. . WITH DIFFERENTIAL . . . WITH INIToption, otherwise the first time the incremental backup is run, it will perform a backup usingWITH INIToption.You may define the
scheduleand/orscheduleIncrementalusing the followingcronjob scheduling format:Unit
Description
Value
MINMinute field
0 to 59
HOURHour field
0 to 23
DOMDay of Month
1 to 31
MONMonth field
1 to 12
DOWDay of Week
0 to 6
For example:
+---------------- MIN | +------------- HOUR | | +---------- DOM | | | +-------- MON | | | | +------ DOW | | | | | schedule: 13 20 * * *Where:
-
deadlineSeconds: Default deadline in seconds in which a full backup job has to finish before it is terminated.Defaults to 3600 seconds if not specified. -
deadlineSecondsIncremental: Default deadline in seconds in which an incremental backup has to finish before it is terminated.Defaults to 3600 seconds if not specified. It is suggested to make this value the same value as deadlineSeconds.
-
-
secretName: Name of the Secret containing credentials for use in S3 backup of user databases.
Last modified: February 6, 2024