MCPcopy
hub / github.com/pocketbase/pocketbase / CreateBackup

Method CreateBackup

core/app.go:116–116  ·  view source on GitHub ↗

CreateBackup creates a new backup of the current app pb_data directory. Backups can be stored on S3 if it is configured in app.Settings().Backups. Please refer to the godoc of the specific core.App implementation for details on the backup procedures.

(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

114 // Please refer to the godoc of the specific core.App implementation
115 // for details on the backup procedures.
116 CreateBackup(ctx context.Context, name string) error
117
118 // RestoreBackup restores the backup with the specified name and restarts
119 // the current running application process.

Callers 5

TestCreateBackupFunction · 0.65
TestRestoreBackupFunction · 0.65
backupCreateFunction · 0.65
createTestBackupsFunction · 0.65
updateMethod · 0.65

Calls

no outgoing calls

Tested by 3

TestCreateBackupFunction · 0.52
TestRestoreBackupFunction · 0.52
createTestBackupsFunction · 0.52