Backend: Refactor make command for restore-db
This commit is contained in:
parent
a529e7bf2b
commit
949b20ae9c
1 changed files with 2 additions and 0 deletions
2
Makefile
2
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
|
||||
|
|
Loading…
Reference in a new issue