- Add lib/sysbackup.sh and lib/sysrestore.sh for system-level backup and restore of WHM/cPanel config, packages, and cron jobs - Wire cmd_sysbackup and cmd_sysrestore into bin/gniza - Add --sysbackup flag to cmd_backup: runs system backup after all account backups complete - Add SYSBACKUP schedule config key so cron jobs can include --sysbackup automatically via build_cron_line() - Add "Include system backup" toggle to WHM schedule form - Revert sysbackup toggle from remotes.cgi (belongs in schedules) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
1.4 KiB
Plaintext
22 lines
1.4 KiB
Plaintext
# gniza schedule config
|
|
# Copy to /etc/gniza/schedules.d/<name>.conf and edit
|
|
#
|
|
# Each file in /etc/gniza/schedules.d/ defines a backup schedule.
|
|
# The filename (without .conf) is the schedule name.
|
|
|
|
# ── Schedule ──────────────────────────────────────────────────
|
|
SCHEDULE="daily" # hourly, daily, weekly, monthly, custom
|
|
SCHEDULE_TIME="02:00" # HH:MM (24-hour)
|
|
SCHEDULE_DAY="" # hours between backups (1-23) for hourly
|
|
# day-of-week (0=Sun..6=Sat) for weekly
|
|
# day-of-month (1-28) for monthly
|
|
SCHEDULE_CRON="" # Full cron expression for SCHEDULE=custom
|
|
|
|
# ── Target Remotes ────────────────────────────────────────────
|
|
REMOTES="" # Comma-separated remote names (e.g. "nas,offsite")
|
|
# Empty = all configured remotes
|
|
|
|
# ── System Backup ─────────────────────────────────────────────
|
|
SYSBACKUP="" # "yes" to run system backup after account backups
|
|
# Backs up WHM/cPanel config, packages, cron jobs
|