Backend: Refactor make command for restore-db

This commit is contained in:
Theresa Gresch 2020-06-23 13:07:29 +02:00
parent a529e7bf2b
commit 949b20ae9c

View file

@ -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