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
docs(cookbook): add database migration method across regions
Add cookbook recipe for migrating managed databases to another region.
Includes two methods tested with real RDB instances:
- Method 1 (cross-region): export backup, download and restore manually
- Method 2 (same-region): direct backup restore via CLI
Important note: scw rdb backup restore cannot restore backups across
different regions due to API limitation.
Copy file name to clipboardExpand all lines: docs/cookbook.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,49 @@ scw instance server list zone=all -o template="{{.ID}} zone={{.Zone}}" | xargs -
88
88
scw rdb backup list -ojson | jq --arg d "$(date -d "7 days ago" --utc --iso-8601=ns)"'.[] | select (.created_at < $d)'
89
89
```
90
90
91
+
## Database (continued)
92
+
93
+
### Migrate a managed database to another region
94
+
95
+
**Important:**`scw rdb backup restore` cannot restore backups across different regions (API limitation). Logical backups and snapshots can only be restored within the same region. For cross-region migration, you must export the backup, download it, and manually restore it using database client tools (psql/mysql).
0 commit comments