Commit Graph

48 Commits

Author SHA1 Message Date
Michael Mayer
cd4e6f1b57 CLI: Add RunWithTestContext function for command tests #3168
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-12-06 09:08:38 +01:00
Michael Mayer
9eef183323 CLI: Upgrade github.com/urfave/cli from v1 to v2 #3168
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-12-05 17:15:59 +01:00
Michael Mayer
22aa700b1e Config: Refactor initialization of settings and database connection
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-07-07 17:00:38 +02:00
Michael Mayer
f019ee2ad3 Backend: Move backup package to internal/photoprism/backup
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-07-02 06:32:17 +02:00
Michael Mayer
2caf04a1d4 Config: Add backup options to the Advanced Settings UI #2495 #4243 #4269
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-20 10:18:52 +02:00
Michael Mayer
6f00545563 Config: Improve usage descriptions for backup options and flags #4243
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-19 16:17:16 +02:00
Michael Mayer
3d908c7256 Config: Add “daily” and “weekly” backup schedule options #4243
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-19 14:17:01 +02:00
Michael Mayer
ca78305eac Backups: Improve command-line backup and restore commands #4243
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-15 15:25:30 +02:00
Michael Mayer
d5580c116a Backups: Rename "backup-index" config option to "backup-database" #4243
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-14 11:11:50 +02:00
Michael Mayer
f00d88dfca Backups: Improve log messages for photo and album metadata exports #3284
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-13 15:36:32 +02:00
Michael Mayer
b3782fc427 Backups: Improve usage descriptions of config options #4243
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-13 09:41:19 +02:00
Michael Mayer
0396e86f4e Backups: Refactor config and add "sidecar-yaml" config option #4243
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-13 09:21:34 +02:00
Michael Mayer
1fe0bab4c1 Backups: Add config option to limit the number of backups to keep #4243
PHOTOPRISM_BACKUP_RETAIN lets to specify the number of index database
dumps to keep (backup filenames are in the format "YYYY-MM-DD.sql").

Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-12 17:44:33 +02:00
Michael Mayer
424ed84f2a Backups: Add worker to create backups in the background #4237 #4243
In the next step, this worker can be configured to automatically create
index and/or album backups at regular intervals.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-10 17:41:32 +02:00
Michael Mayer
f5d38978d6 Backups: Improve logging when backup command fails #4237
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-09 10:00:43 +02:00
Michael Mayer
86dc89c4b9 Config: Show error if originals and storage path seem identical #1642
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-21 14:22:16 +01:00
Michael Mayer
bff649469d Config: Make PhotoPrism compatible with MariaDB 11 #3443
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-06-02 17:07:10 +02:00
Michael Mayer
c426a184c5 Backup & Restore: Refactor commands not to run into size limits #3140
See also #3301, #3311, and #3298.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-04-01 16:23:25 +02:00
Michael Mayer
0c4aa86f85 CLI: Create thumbs and convert files in deterministic order #3194
This also adds support for specifying a path to the thumbs command.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-14 11:37:22 +01:00
Michael Mayer
91774c4068 Security: Create new files without execution permission #2809
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-10-31 15:01:48 +01:00
Michael Mayer
884dea17de Security: Use individual preview tokens for each user account #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-10-13 22:11:02 +02:00
Michael Mayer
c7be7c43eb CLI: Refactor tests and config initialization
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-10-04 12:27:40 +02:00
Michael Mayer
f5a8c5a45d Auth: Session and ACL enhancements #98 #1746
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-09-28 09:01:17 +02:00
Michael Mayer
92e6c4fe1e Download: Add Disabled, Originals, MediaRaw & MediaSidecar Flags #2234
Extends DownloadSettings with 4 additional options:
- Name: File name pattern for downloaded files (existed)
- Disabled: Disables downloads
- Originals: Only download files stored in "originals" folder
- MediaRaw: Include RAW image files
- MediaSidecar: Include metadata sidecar files (JSON, XMP, YAML)
2022-04-15 09:42:07 +02:00
Michael Mayer
9eda12ac20 Performance: Refactor database schema and UI components #995 #1438 #1811 2022-03-30 20:36:25 +02:00
Michael Mayer
3d9cb51641 Darktable: Set explicit cache and config path, log exact commands #2076 2022-03-02 12:20:02 +01:00
Michael Mayer
d03e28d88e Backups: Rename YAML "backup" files to just YAML files #1887 2022-01-06 13:21:42 +01:00
Michael Mayer
58a5f94069 Backups: Rename album backups to exports and improve command help #1887 2022-01-05 11:40:44 +01:00
Michael Mayer
0f0c0aaa0b API: Improve path and filename parameter sanitation #1814 2021-12-14 20:01:39 +01:00
Michael Mayer
9a8144c046 Log4j: Sanitize user input in logs like filenames and album titles #1814 2021-12-14 17:07:38 +01:00
Michael Mayer
3ae3fe29bc SQLite: Rename dialect constant to SQLite3 for consistency #319 #1791 2021-12-09 07:47:23 +01:00
Michael Mayer
8f55d6f841 CLI: Improve backup and restore commands 2021-10-07 13:27:49 +02:00
Michael Mayer
a7b6107d5e CLI: Improve backup and restore commands 2021-10-07 13:17:16 +02:00
Michael Mayer
8a063037e0 CLI: Revised descriptions of commands and configuration flags 2021-10-07 13:00:32 +02:00
Michael Mayer
874af1db61 CLI: Revised descriptions of commands and configuration flags 2021-10-07 11:43:43 +02:00
Eng Zer Jun
44f7700c0c Enable module graph pruning and deprecate io/ioutil (#1600)
* Backend: Enable Go module graph pruning and lazy module loading

This commit applies the changes by running `go mod tidy -go=1.17` to
enable module graph pruning and lazy module loading supported by Go 1.17
or higher.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* Backend: Move from io/ioutil to io and os package

The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-10-06 07:10:50 +02:00
Michael Mayer
bf0153267d Logs: More consistent log format for commands 2021-10-02 15:34:41 +02:00
Michael Mayer
de737a6eef Logs: Always put time in brackets 2021-10-02 15:19:11 +02:00
Michael Mayer
4dd09f4502 People: Add "photoprism faces index" command for indexing faces only #22 2021-09-22 19:33:41 +02:00
Michael Mayer
55d502bbca Restore: Improve command flags and usage docs #1190 #1193 2021-04-20 08:40:39 +02:00
Michael Mayer
fd078fe323 Backup: Improve command usage docs #1190 #1193 2021-04-19 13:54:38 +02:00
Michael Mayer
7de3713024 Backup: Improve command flags and usage docs #1190 #1193 2021-04-19 13:48:46 +02:00
Kyle Roth
17600e5259 docs(backup): add usage text to describe argument (#1193) 2021-04-19 11:25:45 +02:00
Michael Mayer
635053346f Backup: Always use TCP connection for MySQL #1034 2021-02-16 08:59:57 +01:00
Michael Mayer
449fb7a2c1 Backup and restore albums from YAML files #567 2020-12-17 18:24:55 +01:00
Michael Mayer
28880e682d Database: Improve config and SQL queries 2020-12-15 20:14:06 +01:00
Michael Mayer
8f80026b3e Database: Add restore command 2020-12-11 13:52:34 +01:00
Michael Mayer
20feb6f0a0 Database: Add backup command and make config more compatible #460 2020-12-11 12:46:28 +01:00