selfprivacy-rest-api/selfprivacy_api/backup/providers/memory.py

12 lines
359 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):
backuper = ResticBackuper("", "", ":memory:")
name = BackupProviderEnum.MEMORY