ssh_backup_schedule
Schedules recurring backups on remote servers with support for MySQL, PostgreSQL, MongoDB, and files. Installs cron jobs and manages retention automatically.
Instructions
Schedules a recurring backup on the remote server by writing an executable bash script to /usr/local/bin/ssh-manager-backup-NAME.sh and installing a crontab entry for the given cron expression. Mutates the remote filesystem and crontab, and typically needs root to write that path. Supports mysql, postgresql, mongodb, and files; the generated script also deletes backups older than retention days (default 7).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | Server name | |
| schedule | Yes | Cron schedule (e.g., "0 2 * * *" for daily at 2 AM) | |
| type | Yes | Backup type | |
| name | Yes | Backup name | |
| database | No | Database name (for db types) | |
| paths | No | Paths to backup (for files type) | |
| retention | No | Retention period in days (default: 7) |