Support generating a compressed archive for a server via the API

This commit is contained in:
Dane Everitt
2020-07-11 13:13:49 -07:00
parent 79928aff76
commit c1e591c99b
6 changed files with 155 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ func (b *LocalBackup) Generate(included *IncludedFiles, prefix string) (*Archive
Files: included,
}
if err := a.Create(b.Path(), context.Background()); err != nil {
if _, err := a.Create(b.Path(), context.Background()); err != nil {
return nil, err
}