Function: migrateProviderBackups()
function migrateProviderBackups(args: {
encryptionKey?: Buffer<ArrayBufferLike>;
provider: CloudStorageProvider;
request: CloudBackupMigrationRequest;
}): Promise<CloudBackupMigrationResult>;
Defined in: electron/services/cloud/migrations/backupMigration.ts:176
Migrates backups stored in a CloudStorageProvider.
Parameters
args
encryptionKey?
Buffer<ArrayBufferLike>
Optional encryption key for encrypt/decrypt operations.
Remarks
Required when migrating to encrypted, or when the source backup is encrypted.
provider
request
Returns
Promise<CloudBackupMigrationResult>
Remarks
Operates on CloudStorageProvider.listBackups() entries.
- Uploads migrated backups with
uploadBackup()to ensure consistent metadata serialization. - Deletes source objects only after a successful upload when
request.deleteSourceis true.