-
Notifications
You must be signed in to change notification settings - Fork 320
Update export-backups-to-own-cloud-account.md #3688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The command to restore from backup is incorrect. The correct command should be: RESTORE DATABASE test_backups_restored AS test_backups FROM S3('https://testchbackups.s3.amazonaws.com/backups/<uuid>', '<key id>', '<key secret>')
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Actually, as I was reviewing the document again, all the restore from backup commands are incorrect - not just the one that I fixed. From public documentation:
the important part is
so for restore, you need to do the database_name in the service where the restore is performed AS the name of the database in the backup |
@@ -88,8 +88,8 @@ SETTINGS base_backup = S3('https://testchbackups.s3.amazonaws.com/backups/<base- | |||
### Restore from a backup {#restore-from-a-backup} | |||
|
|||
```sql | |||
RESTORE DATABASE test_backups | |||
AS test_backups_restored |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is restoring test_backups
(backed up above) AS a new database, this doesnt seem incorrect to me
This seems counterintuitive, we need to test as the reference spec actually looks wrong to me. |
so the syntax isn't quite documented right, should be:
|
The issue is the syntax is correct for BACKUP but not for RESTORE where its inverted. |
The command to restore from backup is incorrect. The correct command should be: