fix(server): allow starting backup through API and fix pg_dumpall args when using database URLs (#13970)
* fix(server): allow starting backup through API * fix(server): fix pg_dumpall args when using database URLs The database has to be specified using `-d`, unlike for pg_dump.
This commit is contained in:
@@ -164,6 +164,10 @@ export class JobService extends BaseService {
|
||||
return this.jobRepository.queue({ name: JobName.LIBRARY_QUEUE_SYNC_ALL, data: { force } });
|
||||
}
|
||||
|
||||
case QueueName.BACKUP_DATABASE: {
|
||||
return this.jobRepository.queue({ name: JobName.BACKUP_DATABASE, data: { force } });
|
||||
}
|
||||
|
||||
default: {
|
||||
throw new BadRequestException(`Invalid job name: ${name}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user