- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cron transfer
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2006 03:13 AM
тАО05-25-2006 03:13 AM
Furthermore,do i have to put enteries in the following directories under /var/spool/cron
(h8193n2)root# cd /var/spool/cron
(h8193n2)root# ll
total 12
dr-xr-xr-x 2 bin bin 96 May 21 07:53 atjobs
-r--r--r-- 1 bin bin 342 Jun 10 1996 crontab.root
dr-xr-xr-x 2 bin bin 1024 May 21 07:56 crontabs
drwxrwxrwt 2 root root 4096 May 25 11:10 tmp
If i go into individual directories examples lets say crontabs i get
(h8193n2)root# cd crontabs
(h8193n2)root# ll
total 14
-r--r--r-- 1 root adm 811 Sep 15 1999 adm
-r--r--r-- 1 root hbo 459 Sep 15 1999 hbo
-r-------- 1 root sys 2806 May 21 07:56 root
-r--r--r-- 1 root users 0 Oct 5 1999 slove
-r-------- 1 root hbo 1300 May 19 09:33 sqldba
so do i put in enteries here also, or crontab -l are the only enteries i should be concerned about.......
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2006 03:27 AM
тАО05-25-2006 03:27 AM
Re: cron transfer
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2006 03:29 AM
тАО05-25-2006 03:29 AM
Re: cron transfer
The 'crontab' files 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
You could copy from server-to-server the contens of the '/var/spool/cron/crontabs' directory and copy (or merge) the contents of the 'at.*' and 'cron.*' files.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2006 03:30 AM
тАО05-25-2006 03:30 AM
SolutionOption 1
Save your crontab to a file:
Use crontab -l > username.cron
Restore your crontab file on the other system:
crontab username.cron
You don't have to use crontab -e and paste, just specify the file name and the contents of the file will be used as your crontab. The /var/spool/cron/crontabs/username file will be created.
Option 2:
"tar" the crontabs directory and restore in the other system.
cd /var/spool/cron/crontabs
tar cvf cron.tar *
On the other system
cd /var/spool/cron/crontabs
tar xvf cron.tar
This will transfer all cron jobs from one system to another.
Just be carefull, in both methods, you will be replacing your current cron jobs. If you don't want to do that, you have to do it one by one, using crontab -e and pasting the entries that you need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2006 03:31 AM
тАО05-25-2006 03:31 AM
Re: cron transfer
Oops. One more thing. Having transferred and/or merged the necessary files, restart 'cron':
# /sbin/init.d/cron stop
# /sbin/init.d/cron start
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2006 03:43 AM
тАО05-25-2006 03:43 AM