From 949b20ae9c959dc9ac306b1e69b0e57a048d2192 Mon Sep 17 00:00:00 2001 From: Theresa Gresch Date: Tue, 23 Jun 2020 13:07:29 +0200 Subject: [PATCH] Backend: Refactor make command for restore-db --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 77e6626e9..d8c38d7a8 100644 --- a/Makefile +++ b/Makefile @@ -28,10 +28,12 @@ acceptance-start: acceptance-restart: go run cmd/photoprism/photoprism.go stop cp -f storage/acceptance/backup.db storage/acceptance/index.db + cp -f storage/acceptance/settings/settingsBackup.yml storage/acceptance/settings/settings.yml rm -rf storage/acceptance/originals/2010 rm -rf storage/acceptance/originals/2013 go run cmd/photoprism/photoprism.go --public --database-driver sqlite --database-dsn ./storage/acceptance/index.db --import-path ./storage/acceptance/import --http-port=80 --settings-path ./storage/acceptance/settings --originals-path ./storage/acceptance/originals --sidecar-hidden=false --sidecar-json=false --sidecar-yaml=false start -d acceptance-restore-db: + cp -f storage/acceptance/settings/settingsBackup.yml storage/acceptance/settings/settings.yml cp -f storage/acceptance/backup.db storage/acceptance/index.db rm -rf storage/acceptance/originals/2010 rm -rf storage/acceptance/originals/2013