You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -38,11 +43,29 @@ This should show your available backups
38
43
YYYY-MM-DDTHH:MM:SSZ | physical | finished
39
44
```
40
45
46
+
## Point-in-time recovery
47
+
48
+
Point-in-time recovery (PITR) is a MySQL K8s feature that enables restorations to the database state at specific points in time. The feature is enabled by default when there’s a working relation with S3 storage.
49
+
41
50
## Restore backup
42
51
43
52
To restore a backup from that list, run the `restore` command and pass the `backup-id` to restore:
44
53
```shell
45
54
juju run mysql-k8s/leader restore backup-id=YYYY-MM-DDTHH:MM:SSZ
46
55
```
47
56
48
-
Your restore will then be in progress.
57
+
Your restore will then be in progress.
58
+
59
+
However, if the user needs to restore to a specific point in time between different backups (e.g. to restore only specific transactions made between those backups), they can use the restore-to-time parameter to pass a timestamp related to the moment they want to restore.
60
+
61
+
```shell
62
+
juju run mysql-k8s/leader restore restore-to-time="YYYY-MM-DD HH:MM:SS"
63
+
```
64
+
65
+
Your restore will then be in progress.
66
+
67
+
It’s also possible to restore to the latest point from a specific timeline by passing the ID of a backup taken on that timeline and restore-to-time=latest when requesting a restore:
68
+
69
+
```shell
70
+
juju run mysql-k8s/leader restore restore-to-time=latest
0 commit comments