Skip to main content
Backups are plain systemd units. For each job, AerosPanel writes a Type=oneshot service that runs tar, plus a .timer that triggers it. systemd handles the schedule, so the panel holds nothing in memory between runs.

Create a backup job

1

Open Settings

Go to Settings > SYSTEMD_TIMER_BACKUPS.
2

Fill in the job

  • JOB_NAME: 1 to 40 characters: lowercase letters, digits, -, _. Must start with a letter or digit.
  • ON_CALENDAR: hourly, daily, weekly, or monthly.
  • TARGET_PATHS: one absolute path per line, up to 20. Files or directories.
3

Create

Press CREATE_BACKUP_TIMER. The panel writes both units, reloads systemd, and runs systemctl enable --now on the timer.
A typical job backs up the panel database and an app’s environment file:
TARGET_PATHS
The API also accepts a daily time such as 03:30 as the schedule, which becomes OnCalendar=*-*-* 03:30:00. The Settings form only offers the four named schedules.

Path rules

Each path goes through validateWorkDir, so it must be absolute and outside /etc, /bin, /sbin, /usr, /lib, /lib64, /boot, /dev, /proc, /sys, /run, and /var/lib. Paths may only contain letters, digits, and . _ / @ + -. Spaces are not allowed. Duplicates are dropped.

Generated units

For a job named panel-db:
/etc/systemd/system/aeros-backup-panel-db.service
/etc/systemd/system/aeros-backup-panel-db.timer
  • Archives are written to /var/backups/aeros-panel/<name>-YYYYMMDD-HHMMSS.tar.gz.
  • UMask=0077 makes each archive 0600, readable by root only. .env files and databases often hold secrets.
  • Persistent=true runs a missed backup at the next boot if the machine was off at the scheduled time.

Manage jobs

Each job in the list shows its timer status and schedule, with these actions: Check the next run and past runs from SSH:

Retention and restore

AerosPanel does not delete old archives. Prune them yourself, for example by keeping the last 14 days:
To restore, stop the service that owns the files, then extract the archive. tar stores paths without the leading /, so extract from /:
Backups stay on the same disk as the data. Copy /var/backups/aeros-panel/ to another machine (for example with rsync or Syncthing) if you need protection from disk failure.