mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Backups: Refactor config and add "sidecar-yaml" config option #4243
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -125,7 +125,7 @@ func startAction(ctx *cli.Context) error {
|
||||
go server.Start(cctx, conf)
|
||||
|
||||
// Restore albums from YAML files.
|
||||
if count, restoreErr := photoprism.RestoreAlbums(conf.AlbumsPath(), false); restoreErr != nil {
|
||||
if count, restoreErr := photoprism.RestoreAlbums(conf.BackupAlbumsPath(), false); restoreErr != nil {
|
||||
log.Errorf("restore: %s", restoreErr)
|
||||
} else if count > 0 {
|
||||
log.Infof("%d albums restored", count)
|
||||
|
||||
Reference in New Issue
Block a user