Backups
Backups are enabled by default. The Redis instance will be backed up daily at a randomly chosen time between 22:00 and 4:00.
You can specify a different backup time and interval using the following backup configuration:
apiVersion: vshn.appcat.vshn.io/v1
kind: VSHNRedis
metadata:
name: redis-app1-prod
namespace: <your-namespace>
spec:
parameters:
...
backup:
schedule: 0 22 * * * (1)
...
1 | The schedules for your backups. |
Listing Backups
Get an overview of all backups performed of your database instance:
$ kubectl -n <your-namespace> get vshnredisbackups
BACKUP ID DATABASE INSTANCE BACKUP TIME
6678cecd redis-app1-prod 2023-06-26T08:11:02Z
6df7d405 redis-app1-prod 2023-06-26T07:30:05Z
4bb23139 redis-app2-prod 2023-06-26T12:29:05Z
e5164ada redis-app2-prod 2023-06-26T12:33:02Z
The list will show all backups from all instances in this namespace. In the example above there are two database instances with two backups each. |
Backup Details
Learn more about a chosen backup:
$ kubectl -n <your-namespace> get vshnredisbackups 6678cecd -oyaml
apiVersion: api.appcat.vshn.io/v1
kind: VSHNRedisBackup
metadata:
creationTimestamp: "2023-06-26T08:11:03Z"
generation: 1
name: 6678cecd (1)
namespace: default
resourceVersion: "14581"
uid: ee105483-2a15-476b-b2d1-561526c74e25
status:
date: "2023-06-26T08:11:02Z" (2)
id: 6678cecd3a006ff04111a3bd992c2a22183f7b69b2a8632dc365843341927c4a (3)
instance: redis-app1-prod (4)
1 | Short ID of the backup |
2 | The time when the backup finished |
3 | Full ID of the backup, this is used for internal restore operations |
4 | Name of the instance this backup belongs to |