Config: Read admin and database password from file #2302

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-03-28 21:00:56 +01:00
parent a89f186f40
commit ad5baf2823
11 changed files with 171 additions and 85 deletions

View File

@@ -40,19 +40,21 @@ var backupFlags = []cli.Flag{
Aliases: []string{"a"},
Usage: "create YAML files to back up album metadata (in the standard backup path if no other path is specified)",
},
&cli.StringFlag{
Name: "albums-path",
Usage: "custom album backup `PATH`",
&cli.PathFlag{
Name: "albums-path",
Usage: "custom album backup `PATH`",
TakesFile: true,
},
&cli.BoolFlag{
Name: "database",
Aliases: []string{"index", "i"},
Usage: "create index database backup (in the backup path with the date as filename if no filename is passed, or sent to stdout if - is passed as filename)",
},
&cli.StringFlag{
Name: "database-path",
Aliases: []string{"index-path"},
Usage: "custom database backup `PATH`",
&cli.PathFlag{
Name: "database-path",
Aliases: []string{"index-path"},
Usage: "custom database backup `PATH`",
TakesFile: true,
},
&cli.IntFlag{
Name: "retain",