RoutedTenantBackupStorage
in package
implements
TenantBackupStorageInterface
FinalYes
Writes new archives to configured storage while retaining historical local:// reads.
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- Constructor.
- delete() : void
- Delete a stored encrypted archive.
- retrieve() : TenantBackupStoredObject
- Retrieve and verify basic metadata for an encrypted archive.
- store() : TenantBackupStoredObject
- workPath() : string
- Return an isolated local staging path for an archive.
- adapter() : TenantBackupStorageInterface
- Select storage from the persisted object URI scheme.
Properties
$configured read-only
private
TenantBackupStorageInterface
$configured
$local read-only
private
TenantBackupStorageInterface
$local
Methods
__construct()
Constructor.
public
__construct(TenantBackupStorageInterface $configured, TenantBackupStorageInterface $local) : mixed
Parameters
- $configured : TenantBackupStorageInterface
- $local : TenantBackupStorageInterface
delete()
Delete a stored encrypted archive.
public
delete(string $objectUri) : void
Parameters
- $objectUri : string
Tags
retrieve()
Retrieve and verify basic metadata for an encrypted archive.
public
retrieve(string $objectUri, string $destinationPath) : TenantBackupStoredObject
Parameters
- $objectUri : string
- $destinationPath : string
Tags
Return values
TenantBackupStoredObjectstore()
public
store(TenantMetadata $tenant, string $backupId, string $encryptedPath) : TenantBackupStoredObject
Parameters
- $tenant : TenantMetadata
- $backupId : string
- $encryptedPath : string
Tags
Return values
TenantBackupStoredObjectworkPath()
Return an isolated local staging path for an archive.
public
workPath(string $backupId, string $suffix) : string
Parameters
- $backupId : string
- $suffix : string
Tags
Return values
stringadapter()
Select storage from the persisted object URI scheme.
private
adapter(string $objectUri) : TenantBackupStorageInterface
Parameters
- $objectUri : string