Application backups were driven by one crontab entry per app, each offset by id * CFG_BACKUP_CRONTAB_APP_INTERVAL minutes. That minute offset is written straight into cron's 0-59 minute field, so past ~20 apps it overflowed into an invalid entry that silently never fired, and the fixed spacing could not serialize backups that ran longer than the gap. Replace it with a single daily entry (`libreportal backup scheduled`) that enqueues a backup task per enabled app. The existing systemd task processor drains them serially — no minute overflow, real serialization, and backups are now visible/cancellable in the Tasks UI. Per-app enable is read from CFG_<APP>_BACKUP at schedule time instead of being mirrored into crontab. Removes the stagger machinery (timing/setup/check/remove scripts), the now-unused cron_jobs table + insert, and the CFG_BACKUP_CRONTAB_APP_INTERVAL config knob and its WebUI field. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
29 lines
979 B
Bash
Executable File
29 lines
979 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This file is auto-generated by generate_arrays.sh
|
|
# Do not edit manually - run './scripts/source/files/generate_arrays.sh run' to regenerate
|
|
|
|
database_scripts=(
|
|
"database/app/db_app_scan.sh"
|
|
"database/app/db_cycle_apps.sh"
|
|
"database/app/db_install_app.sh"
|
|
"database/app/db_list_all_apps.sh"
|
|
"database/app/db_list_installed_app.sh"
|
|
"database/app/db_list_installed_apps.sh"
|
|
"database/app/db_uninstall_app.sh"
|
|
"database/check_os_update.sh"
|
|
"database/delete_db_file.sh"
|
|
"database/insert/db_insert_backups.sh"
|
|
"database/insert/db_insert_option.sh"
|
|
"database/insert/db_insert_port_open.sh"
|
|
"database/insert/db_insert_port_used.sh"
|
|
"database/insert/db_insert_restore.sh"
|
|
"database/insert/db_insert_ssh_keys.sh"
|
|
"database/insert/db_insert_ssh.sh"
|
|
"database/install_sqlite.sh"
|
|
"database/tables/db_create_tables.sh"
|
|
"database/tables/db_display_tables.sh"
|
|
"database/tables/db_empty_table.sh"
|
|
|
|
)
|