feat: magic link to enable backups

This commit is contained in:
izzy 2026-06-19 13:06:57 +01:00
parent 5ded6f89b7
commit d18e09de30
No known key found for this signature in database
17 changed files with 225 additions and 35 deletions

View file

@ -137,6 +137,7 @@ describe(ServerService.name, () => {
duplicateDetection: true,
facialRecognition: true,
importFaces: false,
backups: false,
map: true,
reverseGeocoding: true,
oauth: false,

View file

@ -86,7 +86,7 @@ export class ServerService extends BaseService {
}
async getFeatures(): Promise<ServerFeaturesDto> {
const { reverseGeocoding, metadata, map, machineLearning, trash, oauth, passwordLogin, notifications, ffmpeg } =
const { reverseGeocoding, metadata, map, backup, machineLearning, trash, oauth, passwordLogin, notifications, ffmpeg } =
await this.getConfig({ withCache: false });
const { configFile } = this.configRepository.getEnv();
@ -95,6 +95,7 @@ export class ServerService extends BaseService {
facialRecognition: isFacialRecognitionEnabled(machineLearning),
duplicateDetection: isDuplicateDetectionEnabled(machineLearning),
map: map.enabled,
backups: backup.beta,
reverseGeocoding: reverseGeocoding.enabled,
importFaces: metadata.faces.import,
sidecar: true,

View file

@ -46,6 +46,7 @@ const updatedConfig = Object.freeze<SystemConfig>({
[QueueName.Editor]: { concurrency: 2 },
},
backup: {
beta: false,
database: {
enabled: true,
cronExpression: '0 02 * * *',