Backups: Add worker to create backups in the background #4237 #4243

In the next step, this worker can be configured to automatically create
index and/or album backups at regular intervals.

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-05-10 17:41:32 +02:00
parent c0697b6fa3
commit 424ed84f2a
8 changed files with 257 additions and 80 deletions

View File

@@ -8,6 +8,7 @@ import (
"github.com/photoprism/photoprism/internal/config"
"github.com/photoprism/photoprism/internal/event"
"github.com/photoprism/photoprism/internal/photoprism"
)
func TestMain(m *testing.M) {
@@ -17,6 +18,7 @@ func TestMain(m *testing.M) {
c := config.TestConfig()
defer c.CloseDb()
photoprism.SetConfig(c)
code := m.Run()