- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- backup script
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
тАО06-20-2005 02:42 AM
тАО06-20-2005 02:42 AM
backup is going through but my worry is i cannot see the execution of it. i mean i want to make a logfile so that i can keep track of of each and every steps executed in my scripts.
Can anyone help me in this.
I will attach my smaple script with it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 02:53 AM
тАО06-20-2005 02:53 AM
Solutionmybackup.sh > /var/tmp/backup.log 2>&1
or add these 2 lines at the top of your script
exec 1>/var/tmp/backup.log
exec 2>&1
You could decide to redirect stderr to a separate file as well.
I should also tell you that relying upon dd for you backups is not something that I would do. There is simply no error recovery nor error checking. You should really look at something like rman or better still DataProtector for this task.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 02:53 AM
тАО06-20-2005 02:53 AM
Re: backup script
set -x
at the beginning
and then redirect the errors and STDOUT to a log file:
scriptname 2>&1 > logfilename
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 03:53 AM
тАО06-20-2005 03:53 AM
Re: backup script
Thanks for your suggestions. It is making a backup log for me.
Thanks once again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 07:38 AM
тАО06-20-2005 07:38 AM
Re: backup script
Since you are using Oracle 9i, please consider using Oracle RMAN as backup and recovery tool. It's handy, FULLY supported by Oracle, uses less space and last but not least very free (gratis/gratuis).
With RMAN you can copy/clone database very easy and create online backups.
Cheers,
Renarios
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 07:47 AM
тАО06-20-2005 07:47 AM
Re: backup script
backup | tee -a backup.log > output.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 08:01 AM
тАО06-20-2005 08:01 AM
Re: backup script
mybackup.sh 2>&1 | tee /var/tmp/backup.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2005 04:35 AM
тАО06-21-2005 04:35 AM
Re: backup script
Your script does not include the shell in which its going to execute. If its the Korn shell and you need to turn on debugging then put the following lines at the top of your script:
=============================================
#!/bin/ksh
#
set -x
=============================================
After adding these lines to the top of the script schedule it through cron as follows:
mybackup.sh 2>&1 /var/tmp/mybackup.log
cheers!