- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- help with cron pls
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
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
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
07-24-2001 08:26 AM
07-24-2001 08:26 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2001 08:33 AM
07-24-2001 08:33 AM
SolutionHere is the cron entry:
00 19 * * 1 /sys_backups/make_sys_backup.new 2>&1 | mailx -s "uran make recovery" patrickwallek@upr.com
Here is the script make_sys_backup.new:
#!/bin/sh
#
# Written by - Patrick Wallek
# Date - 3/16/1999
# Purpose - Run an Ignite UX backup utilizing the make_recovery command
# and the run the rotate_tapes script to rotate the system backup tapes.
#
/usr/bin/mt -f /dev/rmt/0mn rew
date | mailx -s "make_recovery started on uran" patrickwallek@upr.com
/opt/ignite/bin/make_tape_recovery -a /dev/rmt/0mn -I -t "Make recovery of UPR system `uname -n` on `date`" -v -x inc_entire=vg00 2>&1 | mailx -s "make_recovery_on_uran" patrickwallek@upr.com
date | mailx -s "make_recovery finished on uran" patrickwallek@upr.com
/usr/bin/mt -f /dev/rmt/0mn offl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2001 08:34 AM
07-24-2001 08:34 AM
Re: help with cron pls
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2001 06:53 PM
07-24-2001 06:53 PM
Re: help with cron pls
Just run "crontab -e" command, which in turn will open your cron file in vi mode, in that add the following entry and save it.
0 0 * * 5 /recovery_script
The above one would run on all friday's at midnight.
The script /recovery_script is as follows:
#!/sbin/sh
#script for creating a recovery tape
#date
#
/opt/ignite/bin/make_recovery -v -A -i -C -d /dev/rmt/0m
# script ends here
The option -C will create the system status file under /var/opt/ignite/recovery/makerec.last.
Hope this one will help you.
Regards,
N.Harinath.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 07:30 AM
07-25-2001 07:30 AM