MCPcopy
hub / github.com/pocketbase/pocketbase / RestoreBackup

Method RestoreBackup

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

RestoreBackup restores the backup with the specified name and restarts the current running application process. The safely perform the restore it is recommended to have free disk space for at least 2x the size of the restored pb_data backup. Please refer to the godoc of the specific core.App imple

(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

126 //
127 // NB! This feature is experimental and currently is expected to work only on UNIX based systems.
128 RestoreBackup(ctx context.Context, name string) error
129
130 // Restart restarts (aka. replaces) the current running application process.
131 //

Callers 2

TestRestoreBackupFunction · 0.65
backupRestoreFunction · 0.65

Calls

no outgoing calls

Tested by 1

TestRestoreBackupFunction · 0.52