Cron
Cron can perform tasks regularly, such as:
backup website
,backup database
,backup directory
,execute commands
,automatic task
execution, etc.
Cron Overview
Cron Job
Add Task : Add
scheduled
taskAll categories : View the specified
task category
Name : task name
Status : The status of the task, whether
Stopped
orRunning
Execute cycle : Execution cycle time
Number of Save : Set the
number
of backup files tokeep
. If they exceed the number, they will beautomatically deleted
.Backup to : Back up to specified storage location, supported
Local Disk
,FTP Storage
,Google Drive
,Google Cloud Storage
,AWS S3
. In addition toLocal Disk
, other storage locations need to beinstalled
andconfigured
in the APP Store.Last execute time : Last execution time of this task
Execute : Click to
perform
this task nowEdit : Edit scheduled tasks
Log : View the execution log in this task, can check the task
execution results
Delete : Delete scheduled tasks
Add Task
or Edit
-- Cron Job
Shell Script
Execute specified commands regularly
Task type : choose
Shell Script
Task name : Enter the name of the task
Execute cycle : time support
Daily
,N Days
,Hourly
,N Hours
,N Minutes
,Weekly``Monthly
,N Second
.Execute user : User who performs the task
Script content : Enter the command to be executed
Backup Site
Back up website regularly
Task type : choose
Backup Site
Task name : Display the backup task name
Execute cycle : time support
Daily
,N Days
,Hourly
,N Hours
,N Minutes
,Weekly
Monthly
.Backup reminder : Reminder when backup fails, support
Email
,Dingding
,WeCom
,Feishu
,Telegram
Backup site : Select
all
orspecified
websitesBackup to : Select the location where the backup files are to be stored, supported
Local Disk
,FTP Storage
,Google Drive
,Google Cloud Storage
,AWS S3
.Backup setting : The backup save location is:
FTP Storage
,Google Drive
,Google Cloud Storage
,AWS S3
, Can choose to keep the backup file locally on the server.Retain the latest : Keep the
latest copies
, old ones will bedeleted
Exclusion rules : Exclude files or directories that are not backed up.
Backup Database
Schedule backup of database, currently only supports
MySQL
databaseTask type : choose
Backup Database
Task name : Display the backup task name
Execute cycle : time support
Daily
,N Days
,Hourly
,N Hours
,N Minutes
,Weekly
Monthly
.Backup reminder : Reminder when backup fails, support
Email
,Dingding
,WeCom
,Feishu
,Telegram
Backup database : Select the supported database type, currently only supported
MySQL
databaseDatabase : Select
all
orspecified
databasesBackup to : Select the location where the backup files are to be stored, supported
Local Disk
,FTP Storage
,Google Drive
,Google Cloud Storage
,AWS S3
.Retain the latest : Keep the
latest copies
, old ones will bedeleted
Backup setting : The backup save location is:
FTP Storage
,Google Drive
,Google Cloud Storage
,AWS S3
, Can choose to keep the backup file locally on the server.
Cut Log
Regularly cut website logs
Task type : choose
Cut Log
Task name : Display the cutting task name
Execute cycle : time support
Daily
,N Days
,Hourly
,N Hours
,N Minutes
,Weekly
Monthly
.Cutting Log : Select
all
orspecified
websitesPart : How many days old logs should be retained, the default is
180 days
Backup Directory
Schedule backup directory
Task type : choose
Backup Directory
Task name : Display the backup task name
Execute cycle : time support
Daily
,N Days
,Hourly
,N Hours
,N Minutes
,Weekly
Monthly
Backup reminder : Reminder when backup fails, support
Email
,Dingding
,WeCom
,Feishu
,Telegram
Backup path :
Select directory
to backupBackup to : Select the location where the backup files are to be stored, supported
Local Disk
,FTP Storage
,Google Drive
,Google Cloud Storage
,AWS S3
.Retain the latest : Keep the
latest copies
, old ones will bedeleted
Backup setting : The backup save location is:
FTP Storage
,Google Drive
,Google Cloud Storage
,AWS S3
, Can choose to keep the backup file locally on the server.Exclusion rules : Exclude files or directories that are not backed up.
Sync Time
Synchronize server time
Task type : choose
Sync Time
Task name : Display task name
Execute cycle : time support
Daily
,N Days
,Hourly
,N Hours
,N Minutes
,Weekly
Monthly
Region selection : Select the region to be synchronized
Free RAM
Restart
PHP
,MYSQL
,PURE-FTPD
,APACHE
,NGINX
services regularly torelease memory
Task type : choose
Free RAM
Task name : Display task name
Execute cycle : time support
Daily
,N Days
,Hourly
,N Hours
,N Minutes
,Weekly
Monthly
Access URL
Visit website links regularly
Task type : choose
Access URL
Task name : Display task name
Execute cycle : time support
Daily
,N Days
,Hourly
,N Hours
,N Minutes
,Weekly
Monthly
,N Second
.URL address : Fill in the
website link
want to visitUser-Agent : Fill in User-Agent, can be
empty
Log -- Cron Job
Check the scheduled task execution log and view the
execution results
based on the log.
Refresh log : Get the latest log, or
refresh automatically
Empty log : Clear logs
Execute : Execute task immediately
Task Scheduling
Automatically execute the next task based on the results returned by the task
Add Task : Add a Task Scheduling
Name : task name
Execute cycle : time support
Daily
,N Days
,Hourly
,N Hours
,N Minutes
,Weekly
Monthly
Remark : Task notes
Creation time :Task creation time
Last execute time : Task last execution time
Execute : Execute this task
now
Event : Trigger event, match the task
execution result
to trigger thenext task
Edit : Edit task
Log : View task logs and
check task execution results
Delete : delete task
Add Task
/ Edit
-- Task Scheduling
- Task name : Enter task name
- Execute cycle : time support
Daily
,N Days
,Hourly
,N Hours
,N Minutes
,Weekly
Monthly
- Execute : Select the
script library
or enter thecommand content
- Remark : Task notes
Event
Matching based on task results triggers the next task
When the result is equal to
Include
when, executeStart Nginx
script
Create Trigger Event
- Execution results: When the results of the task match the
input content
, the script selected byExecute
is automatically executed. Matching options:Include
orExclude
orEqual
orUnequal
- Execute: When the conditions of
*Execution results
are met, select the script to be executed. You can add the script inScript library
- The above picture explains: When the result is equal to
Include
when, executeStart Nginx
script
Edit : Edit trigger event
Log : View the trigger event log and check the
trigger execution results
Delete : Delete trigger event
- Execution results: When the results of the task match the
Task Scheduling example:
Requirement: Check whether the Nginx status
is stopped every 5 minutes
. If it stops
, automatically trigger the start of Nginx
.
Add a Task Scheduling
Task name : Check nginx status
Execute cycle : 5 minutes
Execute : Select the script library and select
Get Nginx Status
, finally confirm adding
As shown in the picture:
Create trigger event
Execution results : choose
Include
,enterstopped
Execute : choose
Start Nginx
Stop Nginx for testing
Exist
APP Store
in, findNginx
Go to administration to stop itClick
Execute
Perform tasks and viewLog
, check whether starting Nginx is successfully executed
Script library
Built-in script library
Create Script :Create a script
Name : script name
Type : Script type:
bash
orpython
Return type : Script return type:
Float
orString
orInteger
Remark : Script notes
Create time : Script creation time
Last execute time : Last execution time of the script
Execute : Execute this script
immediately
Edit : Edit script
Log : View logs and check script
execution results
Delete : delete script
Create Script
Name : Enter script name
Return type : Script return type:
Float
orString
orInteger
Script args : Whether
script parameters
, prompts and instructions are requiredRemark : Script notes
Feedback or Suggestions
If you encounter problems or suggestions during use, please contact us through the following methods:
- (Please describe in
detail
or providescreenshots
)
- Forum: https://www.aapanel.com/forum
- Email: [email protected]