Importing from cron
BeyondCron is fully compatible with Posix crontab jobs, including the emailing of cron job output.
To import your own crontab
- export crontab
user1@server1% crontab -l > /tmp/user1.crontab
- start bc-cli
user1@server1% bc-cli
Enter user1’s password: ********
- import your crontab
BeyondCron % cron import server1 /tmp/user1.crontab
Job /crontabs/server1/user1.1 created
Job /crontabs/server1/user1.2 created
Job /crontabs/server1/user1…. created
the crontab file name, must be named either username, or username.suffix where username is the name of the user logged into BeyondCron, and suffix is user defined.
by default BeyondCron does not enable the resultant jobs. If you would like to enable them upon import use the enable flag (see below).
To import a servers crontabs for all users as root
In order to import crontabs for all users you must be admin belong to the admin role.
- start bc-cli
root@server1# bc-cli —admin
- import a servers crontabs and enable all of the resultant jobs
BeyondCron % cron import enable server2 /var/spool/cron
Job /crontabs/server2/root.1 created
Job /crontabs/server2/root.2 created
Job /crontabs/server2/root….
Job /crontabs/server2/user1.1 created
Job /crontabs/server2/user1.2 created
Job /crontabs/server2/user1….
Job /crontabs/server2/user2.1 created
Job /crontabs/server2/user2.2 created
Job /crontabs/server2/…