- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tar 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
01-14-2003 03:06 AM
01-14-2003 03:06 AM
tar backup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:10 AM
01-14-2003 03:10 AM
Re: tar backup
Think twice before answering this guy posting.
I never seen this guy assigning point
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:15 AM
01-14-2003 03:15 AM
Re: tar backup
check the syslogfile for error messages during tar process and after creating the tape you can have a look which datas are on the tape by PSEUDO restore:
# tar tv
or
# tar tvf
or
# tar tv > /tmp/index
Regards ...
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:19 AM
01-14-2003 03:19 AM
Re: tar backup
'tar tvf
see man pages for more details
ruban
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:29 AM
01-14-2003 03:29 AM
Re: tar backup
Always that a unix command have been executed return a code, if this code is cero (0) this mean that have been successfully, other code means non-successfully execution status. This return code is stored in $? environment variable, to answer for this do:
tar
if [$? -eq 0 ]
then
echo "tar successfully"
else
echo "tar have warnings or errors"
fi
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:30 AM
01-14-2003 03:30 AM
Re: tar backup
Always that a unix command have been executed return a code, if this code is cero (0) this mean that have been successfully, other code means non-successfully execution status. This return code is stored in $? environment variable, to answer for this do:
tar
if [ $? -eq 0 ]
then
echo "tar successfully"
else
echo "tar have warnings or errors"
fi
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 04:14 AM
01-14-2003 04:14 AM
Re: tar backup
thx r reply, i hv tried r script, but it pop up the below the message everytime "./c: [0: command not found
tar have warnings or errors" , can suggest how to fix it ? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 04:19 AM
01-14-2003 04:19 AM
Re: tar backup
maybe this helps:
http://66.216.15.50/ITRCForumsEtiquette/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 04:20 AM
01-14-2003 04:20 AM
Re: tar backup
Really, I've tried and work fine, pls take note about my last reply wherw "if" statament have a space, this is teh correct sintax:
tar
if [ $? -eq 0 ] <-- correction!
then
echo "tar successfully"
else
echo "tar have warnings or errors"
fi
Rgds, and tell me about!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 04:22 AM
01-14-2003 04:22 AM
Re: tar backup
$ tar cvf /archive.tar files || echo "tar failed"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 04:53 AM
01-14-2003 04:53 AM
Re: tar backup
You should take care of this:
This member has assigned points to 98 of 186 responses to his/her questions.
You can find your previous posts in your profile:
http://forums.itrc.hp.com/cm/TopSolutions/1,,CA877098!1!questions,00.html
It's pathetic that you have to be continously reminded!
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 05:48 AM
01-14-2003 05:48 AM
Re: tar backup
TAR="tar cvf /dev/rmt/0m *"
if `$TAR` ; then
echo "backup worked"
sles
echo "backup failed"
fi
This gets harder depending on what your doing, but return codes are the best indicators whether a command has failed.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 06:29 AM
01-14-2003 06:29 AM
Re: tar backup
don't think using tar as a backup will let you recover a HP-UX system.
to do that, you need an ignite backup
make_tape_recovery
Then if you have the latests tar patch, you can make a massive tarball including files up to 8G in the tar.
Or you could use omniback or fbackup to make a second usaable tape.
I try not to post the same question twice. Though I've been guilty of occasionally not searching before posting, at least I have a 100% record of handing out points on my question.
Please Cheung, be a little nicer to your peers and reward them when they help you. The ettiquette link and Mr. Brown's post deserve 10 points for reminding you to be a responsible poster. Frankly anyone that bothers to post an answer should at least get one point.
I have used answers to my own questions to cut and paste solutions on numerious occaisions, and thats really the way to go.
Lets be friends and come up with new problems that strain our brains to come up with answers.
These forums are NO substitute for a support contract, though I frequently go here first just to have a chance to interact with my peers. I guess I kind of like them.
These forums can be a substitute for hp education, but really if you want to do the job right, you need SysAdmin I and II.
A man page goes a long way towards solving these kind of problems. HP has MUCH better man pages than Linux.
Lets all be friends now.
Regards,
Steve
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 06:30 AM
01-14-2003 06:30 AM