registerBackupMethod

Registers a backup method with a corresponding cloud storage adapter.

This function allows you to specify how backups should be performed by associating a BackupMethods enum value with a CloudStorageAdapter implementation. This association is stored internally, allowing for the later retrieval and utilization of the registered backup method and storage.

If a backup method is already registered, it will be replaced with the new one. This ensures that only the latest configuration for a particular method is used.

Parameters

method

The BackupMethods enum value representing the type of backup method (e.g., GOOGLE_DRIVE, DROPBOX, etc.).

storage

The CloudStorageAdapter instance responsible for interacting with the cloud storage service for the specified backup method.

See also