mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-09 10:23:11 +00:00
101 lines
1.7 KiB
GraphQL
101 lines
1.7 KiB
GraphQL
query BackupConfiguration {
|
|
backup {
|
|
configuration {
|
|
autobackupPeriod
|
|
encryptionKey
|
|
isInitialized
|
|
locationId
|
|
locationName
|
|
provider
|
|
}
|
|
}
|
|
}
|
|
|
|
query AllBackupSnapshots {
|
|
backup {
|
|
allSnapshots {
|
|
id
|
|
createdAt
|
|
service {
|
|
displayName
|
|
id
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fragment genericBackupConfigReturn on GenericBackupConfigReturn {
|
|
code
|
|
message
|
|
success
|
|
configuration {
|
|
provider
|
|
encryptionKey
|
|
isInitialized
|
|
autobackupPeriod
|
|
locationName
|
|
locationId
|
|
}
|
|
}
|
|
|
|
mutation ForceSnapshotsReload {
|
|
backup {
|
|
forceSnapshotsReload {
|
|
...basicMutationReturnFields
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation StartBackup($serviceId: String!) {
|
|
backup {
|
|
startBackup(serviceId: $serviceId) {
|
|
...basicMutationReturnFields
|
|
job {
|
|
...basicApiJobsFields
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation SetAutobackupPeriod($period: Int = null) {
|
|
backup {
|
|
setAutobackupPeriod(period: $period) {
|
|
...genericBackupConfigReturn
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation RemoveRepository {
|
|
backup {
|
|
removeRepository {
|
|
...genericBackupConfigReturn
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation InitializeRepository($repository: InitializeRepositoryInput!) {
|
|
backup {
|
|
initializeRepository(repository: $repository) {
|
|
...genericBackupConfigReturn
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation RestoreBackup($snapshotId: String!, $strategy: RestoreStrategy! = DOWNLOAD_VERIFY_OVERWRITE) {
|
|
backup {
|
|
restoreBackup(snapshotId: $snapshotId, strategy: $strategy) {
|
|
...basicMutationReturnFields
|
|
job {
|
|
...basicApiJobsFields
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation ForgetSnapshot($snapshotId: String!) {
|
|
backup {
|
|
forgetSnapshot(snapshotId: $snapshotId) {
|
|
...basicMutationReturnFields
|
|
}
|
|
}
|
|
} |