Home > AS/400 Tips > iSeries security tips > Simplifying individual object restores
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES SECURITY TIPS

Simplifying individual object restores


Rich Loeber
10.14.2003
Rating: -4.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


A good security policy always includes backups. We tend to think of these backups as being for recovery of your system from catastrophic loss. But more frequently they are also used to recover individual data and other objects that are lost due to a wide variety of reasons, many of which fall into the security area. Having a method for quick and easy restore for individual objects is important in the overall security plans for your iSeries shop.

Many shops resolve this issue by using third-party automated save/restore utilities that provide this function as a standard feature. Others rely on their own methods to get individual objects restored. Too frequently, I have seen this method rely on a lengthy DSPTAP of the backup tape to reach a point where the lost objects to be restored have been listed with their save criteria. For some backups this process can take forever, losing precious time in getting your application back up and running.

A simple solution to this problem is to keep a database on your system with details about each active backup set for your shop. This can be done easily using the OUTPUT parameter on the SAVLIB and/or SAVOBJ command, along with its related parameters OUTFILE, OUTMBR and INFTYPE.

To get started, create a separate library on your system to hold your backup database. This will end up being a multiple member database. For purposes of this example, we'll use the library name of BACKUPDTA and we'll name our database BACKINFO. To get started, run a backup of a single object and specify the following parameters on the SAVOBJ command:

  SAVOBJ OBJ(MYFILE) LIB(RLIBR) DEV(TAP01) OBJTYPE(*FILE)
  OUTPUT(*OUTFILE) OUTFILE(BACKUPDTA/BACKINFO)
  OUTMBR(B030904 *ADD) INFTYPE(*MBR) 

This will create the file as a multiple member database that will become your online backup database. It will add a member to this database named "B030904" that will now contain information about the backup that you just ran.

Then, modify your backup process always to specify these additional parameters. Make sure that you vary the OUTMBR member name to something that will be unique to each backup operation. In this case, I have used the letter 'B' followed by the date in yymmdd format. This makes it easy to identify the correct backup member in the file when it is time to go looking for restore parameters.

You will also need to add a step to the process you use when backup sets are scratched and returned to your pool of blank tapes. When you do that, you'll need to find the associated member and delete it. That will keep this file from getting too large over time.

When it is time to find and restore an individual object, use your favorite file utility to browse the appropriate member and you'll quickly find more than you ever thought you needed to know about a saved object including its sequence number, saved tape label information, the ASP it was saved from and much more. With this information, the exact form of the RSTOBJ command can be easily and quickly determined.

As an additional step, you might also consider saving the database as the last operation in your backup step. That way your database will always be included as a part of the backup set and can be restored to help with problem determination and restore preparation if the online version is also lost.

Finding and restoring individual objects on a backup can be painless and quick using this method. If you have time, you can even add logical file views to your database to locate backup information even more quickly with your file browser.

-------------------------
About the author: Rich Loeber is president of Kisco Information Systems Inc., in Saranac Lake, N.Y. The company is a provider of various security products for the iSeries market.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

Automate disaster recovery restores
Part of the job of a security officer is creating, maintaining and testing your disaster recovery plan. A major part of disaster recovery is recreating your computing environment on a completely different system, and that always involves data and program restores. You might be one of the fortunate ones that has access to a comprehensive third-party save/restore application that automates the disaster recovery restore process for you. If you're in that group, this article is not for you. But, if you're a small- to medium-sized shop that can't afford (or won't consider) one of those products, then you're on your own to create a workable disaster recovery method.

Are your backups complete?
There are many layers to security. You have to make sure that intruders don't get in. And if they do get in, they must not be allowed to do anything harmful. One way to minimize that security risk is to make sure that your backup plan is up to date -- and that it works. This has gotten more difficult as the iSeries has gotten more complex. This tip provides information on iSeries backups, objectives and implementations. You probably have a plan already, but does it have everything you need?

Automating the backup procedure
One user writes, "We are on an iSeries 730 box. We're doing our backups manually using the GO SAVE command (option 21 - Entire Systems). I would like to automate this procedure. I've written a CL program that will perform the SAVSYS, SAVLIB (*nonsys) and SAVDLO libraries. Am I on the right track, or should I be looking in a different direction?" Read what backup & recovery expert Ken Graap had to say.


Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
iSeries system and application security
Developing a security incident response system for System i
Setting up security for programmers on IBM i
Blocking AS/400 DB2 users
Trouble accessing IFS path from Win2k3 server
Checking in on your IBM i authorization lists
Strategies for securing IBM i production files
Changing password security levels and upgrading operating systems on the IBM i
Determine the value of parameter UPPWEI in the DSPUSRPRF field
Define journal code value "K"
Modify content within a journal receiver file

iSeries physical security
Security considerations for IBM i backups
Time for a security checkup for your i
Recovering your AS/400 security configuration
A guide to System i security, part 2: Landing and establishing access
A guide to System i security: Descending into the heart of darkness of IT security
Learning guide: Steps to a secure System i
Securing printed output
12 security tips in 12 minutes
Are all of your System i (iSeries) doors closed? -- part 1
Can you trust all those trigger programs?

Systems Management
Can you trust all those trigger programs?
Are your backups complete?
Controlling remote command processing
Watch your profiles
Avoid locking issues
Send message to users at a remote site
Security journal receiver management
Top 10 backup commands
Create an iSeries Access image and update it with the latest Service Pack
Tracking critical file access in real time

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
midrange  (Search400.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts