Complete the code to create a backup of your Supabase database.
const backup = await supabase.rpc('[1]');
The correct function to create a backup in Supabase is create_backup.
Complete the code to restore a backup from a file.
const result = await supabase.storage.from('backups').[1]('backup-file.sql');
To restore a backup, you first download the backup file using download.
Fix the error in the code to schedule automatic backups.
await supabase.functions.[1]('schedule_backup', { cron: '0 0 * * *' });
The correct method to run a Supabase function is invoke.
Fill both blanks to check the status of a backup and log the result.
const status = await supabase.backups.[1]('backup-id'); console.[2](status);
Use getStatus to check backup status and log to print it to the console.
Fill all three blanks to create a backup, check its status, and notify the user.
const backupId = await supabase.backups.[1](); const status = await supabase.backups.[2](backupId); alert('Backup status: ' + status.[3]);
First, create a backup with createBackup. Then get its status with getStatus. Finally, show the state property in the alert.
