MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / stepPackComposeBackup

Function stepPackComposeBackup

agent/app/service/backup_compose.go:520–522  ·  view source on GitHub ↗
(composeCtx *composeBackupContext)

Source from the content-addressed store, hash-verified

518}
519
520func stepPackComposeBackup(composeCtx *composeBackupContext) error {
521 return composeCtx.fileOp.TarGzCompressPro(true, composeCtx.tmpDir, composeCtx.filePath, composeCtx.req.Secret, "")
522}
523
524func newComposeRecoverContext(req dto.CommonRecover) (*composeRecoverContext, error) {
525 tmpDir := path.Join(path.Dir(req.File), strings.TrimSuffix(path.Base(req.File), ".tar.gz"))

Callers 1

handleComposeBackupFunction · 0.85

Calls 1

TarGzCompressProMethod · 0.80

Tested by

no test coverage detected