- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Writing program to automate backup.
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
04-22-2002 10:03 AM
04-22-2002 10:03 AM
Writing program to automate backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2002 10:17 AM
04-22-2002 10:17 AM
Re: Writing program to automate backup.
- Tags:
- crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2002 10:04 PM
04-22-2002 10:04 PM
Re: Writing program to automate backup.
I think, that you work as sysadmin and you have got the root access.
Here a little script, that will help you to change your crontab settings :
--------------------------------------
#!/bin/sh
cd /var/tmp
# reading out crontab for user
crontab -l > crontab.root
# editing the file
vi crontab.root
# reading in contents to crontab
crontab crontab.root
--------------------------------------------
explanation of crontab line :
############################################################
# Minute Hour Month-Day Month Weekday Command #
# _________________________________________________________#
############################################################
#################
# OmniBack II
#################
0,15,30,45 * * * * /opt/omni/sbin/omnitrig
00 01 * * 1-5 /usr/local/bin/bkcubs # suggested
00 01 * * 6 /usr/local/bin/bkcubs # suggested
---------------------------------------------
Hope, that will help
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 04:35 AM
04-23-2002 04:35 AM
Re: Writing program to automate backup.
You don't even have to go through all of the steps listed above. You can just type "crontab -e root" to edit the crontab. That will bring you into a VI session to edit the crontab and move it into place when you are done. The format of the file is as described above. If you don't want your jobs to run as root, substitute anyone's user id instead of root.
--Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 05:13 AM
04-23-2002 05:13 AM
Re: Writing program to automate backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 06:55 AM
04-23-2002 06:55 AM
Re: Writing program to automate backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 07:57 PM
04-23-2002 07:57 PM
Re: Writing program to automate backup.
PATH=$PATH:/a/b:/x/y
to your script. cron will send errors as mail to the cronfile owner (root), or you can add
/x/y/bkups > /tmp/bkups.log 2>&1
Do this until things are working, then normally you change the call to:
/x/y/bkups > /dev/null
Errors will still get mailed.