Backups and scheduled tasks
Backups#
Open Backups on Home, or Backup Manager on the subscription page. You can also click Back Up Websites on Account › Subscriptions.
The Backup Manager lists the backups of the subscription with Created, Backup, Content, Size and Stored on. The line above the list shows the backup schedule.
Backups need the plan permission Backup and restore using the server storage; storing them remotely needs Backup and restore using remote storage.
Back up now#
- Click Back Up.
- Under Content, choose what to include: Configuration (always included), Website files, Databases and Mail messages.
- Optionally enter a Comment.
- Choose Store on: This server, Remote storage or This server and remote storage. The remote options need your own remote storage (see below).
- Optionally tick Protect with a password so the backup can be restored on another server and enter a Backup password of at least 8 characters. Without a password, the backup can be restored only on this server. The password is not saved anywhere, so keep it safe.
- Click Back Up.
The backup is created in the background; the list shows "Being created…" until it is ready.
Restore#
- Click Restore next to a backup.
- If the backup holds several subscriptions, tick the ones to restore.
- Under Content, choose Website files, Databases and Mail messages.
- For a password-protected backup, enter the Backup password.
- Click Restore.
Restoring writes into the existing subscription: files and databases with the same names are replaced. As a customer you restore files, databases and mail; the configuration of the subscription is restored by your provider. Backups that were uploaded to the server are also restored by your provider ("Ask your provider to restore uploaded backups.").
Download saves a backup to your computer. The bin icon removes it; a backup stored remotely is removed there too.
Scheduled backups#
- Click Schedule.
- Tick Back up on a schedule.
- Under When, choose Every day, Every week (with the day) or Every month (with the day of the month), and the hour.
- Choose the Content and Store on.
- Under Keep, enter how many scheduled backups to keep; older ones are removed.
0keeps all of them. - Choose the Protection: No password (restorable on this server only) or Protect with a password.
- Click Save.
Your own remote storage#
Backups can go to storage you control, for example a second server or an S3 bucket.
- Click Own Remote Storage.
- Choose the Storage: FTP server, SFTP server (SSH) or S3-compatible storage.
- For FTP or SFTP, enter Server and port, User name, Password and Folder. For FTP, keep Use FTPS (explicit TLS); recommended on.
- For S3, enter Endpoint (empty for Amazon S3), Region, Bucket, Access key ID, Secret access key and Folder. Tick Path-style addresses for MinIO and some other providers.
- Optionally tick Keep a copy on this server when a backup is stored remotely only.
- Click Test and Save. The panel tests the connection before saving.
Remote backups always go to your own storage, never to your provider's. Without it, the panel says "Set up your own remote storage first".
Scheduled tasks#
Scheduled tasks run commands, PHP scripts or web addresses at set times, for example a nightly cleanup or a framework's scheduler. They run as the subscription's system user and need the plan permission Scheduled tasks management.
Add a task#
- Open Scheduled Tasks from Home or the subscription page.
- Click Add Task.
- Choose the Task type:
| Type | Field | Example |
|---|---|---|
| Command | Command: runs with cmd.exe in the webspace folder; chain commands with && | php httpdocs\artisan schedule:run |
| URL | Address: the panel requests it and records the HTTP status; status 400 and above counts as an error | https://example.com/cron.php |
| PHP script | Script: a path inside the webspace, plus Arguments and PHP version | httpdocs/cron.php |
- Under Run, choose a preset such as Every 5 minutes, Hourly, Daily at 03:00 or Weekly, Sunday 03:00, or Custom (cron expression). The panel shows the next run times.
- Enter a Description, shown in the list and in emails.
- Choose Send the output by email: Only when the task fails, After every run or Never, and the email address.
- Set the Time limit in minutes; the task and everything it started end after it.
- Leave Run on the schedule ticked.
- Click Add Task.
Manage tasks#
The list shows each task with Schedule, Next run, Last run and Active. Use Run Now to start a task at once, History to see past runs and their output, the pencil icon to change a task and the bin icon to remove it.
Troubleshooting#
| Message | Meaning |
|---|---|
| Your hosting plan does not allow this. Ask your provider to enable it. | The plan lacks the backup or scheduled tasks permission |
| The backup holds none of your subscriptions. | Choose a backup of your own subscription |
| A task fails with a time-out | Raise the Time limit or make the job faster |
Related#
- Files and FTP
- Databases
- Statistics and resources
Something missing? Ask in the community or open a ticket.