diff options
author | Steve Manuel <nilslice@gmail.com> | 2020-01-01 17:14:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-01 17:14:32 -0700 |
commit | 9bc41b703131aa42ca64265ab6fdeadc37841e66 (patch) | |
tree | 138e6b7d6f8bd5c879eff61ce85df95506546003 /system/search/backup.go | |
parent | 45730ba5b4de56fed27f79f8c822bb59d41f7a38 (diff) | |
parent | 6ee81caea4649d3fc3bb6b5bde0628cb91c8e6f5 (diff) |
Merge pull request #333 from mangelajo/env-vars-for-dirs
Allow data directories outside pwd
Diffstat (limited to 'system/search/backup.go')
-rw-r--r-- | system/search/backup.go | 4 |
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 } |