summaryrefslogtreecommitdiff
path: root/system/search/backup.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/search/backup.go')
-rw-r--r--system/search/backup.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/search/backup.go b/system/search/backup.go
index 4017b15..c054f9d 100644
--- a/system/search/backup.go
+++ b/system/search/backup.go
@@ -9,6 +9,8 @@ import (
"path/filepath"
"time"
+ "github.com/ponzu-cms/ponzu/system/cfg"
+
"github.com/ponzu-cms/ponzu/system/backup"
)
@@ -26,7 +28,7 @@ func Backup(ctx context.Context, res http.ResponseWriter) error {
return err
}
- err = backup.ArchiveFS(ctx, "search", f)
+ err = backup.ArchiveFS(ctx, cfg.SearchDir(), f)
if err != nil {
return err
}