Skip to main content

schedulectl

Manage Backup Schedule

This command can be used to manage schedule  jobs from server terminal

Command :

/usr/local/eenos/scripts/schedulectl

Command Options :

usage: schedulectl [command] [command options]  

Eenos backup schedule utility

Option(s):
  -h, --help            show this help message and exit

Command(s):
  -rb, --rebuild        Rebuild schedule cron jobs
  -l, --list            List schedules

Command Options(Required):
  --root, -r            Root backup schedule operations
  --reseller RESELLER, -re RESELLER
                        Reseller backup schedule operations
  --user USER, -u USER  User schedule operations

Schedule Owner Operations

You need to use the pool owner potion  --root , --reseller  or --user with all of this commands. So that those operations will be performed for the specific user.

List Backup Schedules

To list backup schedules use the following command 

/usr/local/eenos/scripts/schedulectl -l USER

Where USER will be --root , --reseller or --user

Example 1 : List schedules of root user or wap

/usr/local/eenos/scripts/schedulectl -l --root

Example 2 : List backup schedules of reseller , myreseller

/usr/local/eenos/scripts/schedulectl -l --reseller myreseller

Example 3 : List backup schedules of user , myuser

/usr/local/eenos/scripts/schedulectl -l --user myuser

Rebuild  Schedule Cron Jobs

These schedules are executed  using a cron job.  To create the cronjob files for the schedules use the following command.

/usr/local/eenos/scripts/schedulectl --rebuild USER

Where USER will be --root , --reseller or --user

Example 1 :  Rebuild schedule crontabs for root or wap

/usr/local/eenos/scripts/schedulectl --rebuild -r

This will create the cronjob file /etc/cron.d/eenosbackup_schedule_wap-root 

You may delete this cronjob file ,  /etc/cron.d/eenosbackup_schedule_wap-root , if you like to disable all  backup schedules from WAP.

Example 2 : Rebuild schedule cronjobs for reseller , myreseller

/usr/local/eenos/scripts/schedulectl --rebuild -re myreseller

This will create the cronjob file /etc/cron.d/eenosbackup_schedule_rapp-myreseller

You may delete this cronjob file , /etc/cron.d/eenosbackup_schedule_rapp-myreseller , if you like to disable this reseller backup schedules.

Example 3 : Rebuild schedule cronjobs for user , myuser

/usr/local/eenos/scripts/schedulectl --rebuild -u myuser

This will create the cronjob file  /etc/cron.d/eenosbackup_schedule_uapp-myuser

You may delete this cronjob file  ,  /etc/cron.d/eenosbackup_schedule_uapp-myuser , if you like to disable this user backup schedules.