Files
gniza4cp/etc/schedule.conf.example
shuki 0eb480489e Add per-schedule toggle to skip suspended cPanel accounts
Adds SKIP_SUSPENDED config key and --skip-suspended CLI flag that
excludes suspended accounts (detected via /var/cpanel/suspended/)
from backups. Follows the same pattern as the existing SYSBACKUP
toggle across all layers: config, schedule loader, cron builder,
CLI flag parsing, and WHM UI (table toggle, AJAX handler, form card).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 19:10:18 +02:00

25 lines
1.6 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
# ── Suspended Accounts ───────────────────────────────────────
SKIP_SUSPENDED="" # "yes" to skip cPanel suspended accounts