1820262 Members
2923 Online
109622 Solutions
New Discussion юеВ

Re: migrating crons

 
khilari
Regular Advisor

migrating crons

Hi people, actually we r migrating from 9000 series to rp7420. Now, i have to transfer all the cron jobs from the old servers to rp.
How should i go about it.........

Thanks
3 REPLIES 3
Rodney Hills
Honored Contributor

Re: migrating crons

On original machine
su each_user
crontab -l >/tmp/cron_each_user

Transfer /tmp/cron_* files to new machine

On new machine
su each_user
crontab
Be sure to put entries in /var/adm/cron/cron.allow for "each_user"

HTH

-- Rod Hills
There be dragons...
James R. Ferguson
Acclaimed Contributor

Re: migrating crons

Hi:

The 'crontabs' are found in the directory:

/var/spool/cron/crontabs

Users are allowed or denied access as governed by:

/var/adm/cron/at.allow
/var/adm/cron/at.deny
/var/adm/cron/cron.allow
/var/adm/cron/cron.deny

Regards!

...JRF...
Ninad_1
Honored Contributor

Re: migrating crons

I guess copying the /var/spool/cron/crontabs/* to the new server should work. Note the permissions and ownership of the files and have similar after copying to 2nd node.

Regards,
Ninad