Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 418 Bytes

File metadata and controls

16 lines (12 loc) · 418 Bytes
import { Client, Compute } from "@appwrite.io/console";

const client = new Client()
    .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
    .setProject('<YOUR_PROJECT_ID>'); // Your project ID

const compute = new Compute(client);

const result = await compute.createDatabaseBackup({
    databaseId: '<DATABASE_ID>',
    type: 'full' // optional
});

console.log(result);