- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- fbackup return value
Operating System - HP-UX
1753587
Members
6813
Online
108796
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-26-2001 06:56 PM
тАО06-26-2001 06:56 PM
I am writing a script to do backup and executes other commands.
Is there a way where I can know whether a fbackup process is successful or not? Only if the backup is successful, then only I can proceed to the other commands.
In the man page, I can see that there is this statement :
fbackup returns one of the following values:
0 upon normal completion.
1 if it is interrupted but allowed to save
its state for possible restart.
2 if any error conditions prevent the
session from completing.
4 if any warning conditions are encountered.
If warnings occur, the operator should check the fbackup logs to verify the sanity of the backup.
But, I have looked for the log files and I don't see any of the values mention above.
Thanks.
Is there a way where I can know whether a fbackup process is successful or not? Only if the backup is successful, then only I can proceed to the other commands.
In the man page, I can see that there is this statement :
fbackup returns one of the following values:
0 upon normal completion.
1 if it is interrupted but allowed to save
its state for possible restart.
2 if any error conditions prevent the
session from completing.
4 if any warning conditions are encountered.
If warnings occur, the operator should check the fbackup logs to verify the sanity of the backup.
But, I have looked for the log files and I don't see any of the values mention above.
Thanks.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2001 07:00 PM
тАО06-26-2001 07:00 PM
Re: fbackup return value
Hi, couple of things. In your script put print $? after the backup. That will give you the return value of the backup job. You can then base whatever you want to do after the backup job on that exit code. Secondly, if you run your backups through sam then the results of the backup are logged in /var/sam/log/br_log. You will see the exit code appended to that file. Hope this helps.
Rob
Rob
Learn the rules so you can break them properly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2001 07:06 PM
тАО06-26-2001 07:06 PM
Re: fbackup return value
Hi,
You must use the -I and -v options to make
sure that logging is done. if the -I is
omitted no logging will occur.
HTH
Michael
You must use the -I and -v options to make
sure that logging is done. if the -I is
omitted no logging will occur.
HTH
Michael
Anyone for a Mutiny ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2001 09:02 PM
тАО06-26-2001 09:02 PM
Solution
Hi,
The following script could solve your problem :
# fbackup command will backup /users directory
fbackup -f /dev/rmt/0m -i /users
if [[ $? = 0 ]]
then
# fbackup terminates correctly
# Put instructions related to that here
else
# fbackup terminates uncorrectly
# Put instructions related to that here
fi
The following script could solve your problem :
# fbackup command will backup /users directory
fbackup -f /dev/rmt/0m -i /users
if [[ $? = 0 ]]
then
# fbackup terminates correctly
# Put instructions related to that here
else
# fbackup terminates uncorrectly
# Put instructions related to that here
fi
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP