Package Exports
- @cmpsbl/failsafe
- @cmpsbl/failsafe/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cmpsbl/failsafe) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@cmpsbl/failsafe
CMPSBL® FAILSAFE — Disaster Recovery & Platform Migration Engine.
Install
npm install @cmpsbl/failsafeUsage
import { createBackup, restore, migrate } from '@cmpsbl/failsafe';
// Backup
const backup = await createBackup({
supabaseUrl: 'https://xxx.supabase.co',
supabaseKey: 'your-service-role-key',
});
// Restore
const result = await restore({
targetUrl: 'https://yyy.supabase.co',
targetKey: 'target-service-role-key',
backupData: myBackupData,
cleanRestore: true,
});
// Full migration
const migration = await migrate({
source: { supabaseUrl: '...', supabaseKey: '...' },
target: { targetUrl: '...', targetKey: '...' },
options: { cleanRestore: true, validateIntegrity: true },
});License
Apache-2.0 © Kenneth E Sweet Jr