```javascript
import { Client, Backups, BackupServices } 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 backups = new Backups(client);

const result = await backups.createRestoration({
    archiveId: '<ARCHIVE_ID>',
    services: [BackupServices.Databases],
    newResourceId: '<NEW_RESOURCE_ID>', // optional
    newResourceName: '<NEW_RESOURCE_NAME>' // optional
});

console.log(result);
```
