selfprivacy-rest-api/selfprivacy_api/backup/providers/memory.py
2023-07-17 16:05:00 +03:00

14 lines
397 B
Python

from .provider import AbstractBackupProvider
from selfprivacy_api.backup.backuppers.restic_backupper import ResticBackuper
from selfprivacy_api.graphql.queries.providers import (
BackupProvider as BackupProviderEnum,
)
class InMemoryBackup(AbstractBackupProvider):
@property
def backuper(self):
return ResticBackuper("", "", ":memory:")
name = BackupProviderEnum.MEMORY