fhg
Volume 7, Number 15 -- April 18, 2007

Two Ways to Audit Your Backup Strategy

Published: April 18, 2007

Hey, Joe:

Nice article on five things that kill backups. In regards to auditing backup results, however, I find it a little tedious to check joblogs as you recommended. I prefer to use the Display Log command for reviewing the system history log to check backup results. It's easy to spot missed objects from this display. I also like to use the Display Backup List command (DSPBCKUPL) for Sarbanes-Oxley compliance.

--Bill


Thanks, Bill for bringing up two ideas I hadn't thought of when I wrote that article. Here are the details on what Bill is discussing and how it can help in your shop.

The Display Log command (DSPLOG) shows all messages that are written to the system history log (QHST), including backup messages. If you want to retrieve your backup messages, you can easily access them by running DSPLOG with the name of your backup job in the Jobs to Display parameter (JOB).

DSPLOG JOB(backup_job_name)

Running DSPLOG this way will display all the backup messages generated during the current date for any job that ran under your backup job name. After running DSPLOG, you will see a set of system messages that look something like these.

Job 381900/QSYSOPR/DAILYBKUP started on 04/10/07 
at 01:00:00 in subsystem QSYSWRK in QSYS
Volume XXXX not under media management control. 
All security objects saved. 
All configuration objects saved.  
6050 objects saved from library LIB1. 
1301 objects saved from library LIB2. 
59 objects saved from library LIB3.   

Once the QHST messages are displayed, it's a fairly easy task to run your finger down the screen and look for any library whose objects were not completely backed up. This allows you to quickly identify any problems with your backup job.

You can also run DSPLOG so that it prints out backup messages to a spooled file that can be retained for your backup logs. To do that, you would run DSPLOG like this:

DSPLOG LOG(QHST) OUTPUT(*PRINT) JOB(backup_job_name)

The other trick to remember is that by default, DSPLOG will only display backup job messages that occurred on the current date. To view backup messages from another day or a range of days, you can fill in beginning and ending dates in the command's Time period for log output parameter (PERIOD). To look at messages from yesterday through today, I could run DSPLOG with the following parameters:

DSPLOG LOG(QHST) PERIOD((*AVAIL '04/17/2007')) JOB(backup_job_name)

The *AVAIL literal tells DSPLOG to show me any QHST messages from the earliest available time of the beginning date, as specified in the first date of PERIOD. Since I only entered a beginning date, DSPLOG would show me any messages from any backup job that ran on April 17 or later. If I wanted to run the command showing all backup messages from April 15 through April 17, I could run DSPLOG this way.

DSPLOG LOG(QHST) PERIOD((*AVAIL '04/15/2007') (*AVAIL '04/17/2007')) JOB(backup_job_name)

The moral here is that you can use your system logs to audit your backup jobs. However, as Bill pointed out, system logs are not the only way to double-check your backup results.

Another audit backup technique involves using one of the backup commands that IBM provides in its Backup Tasks menu (GO BACKUP). Unlike the Save menu (GO SAVE) which provides options for immediately backing up your entire system or different functions in the system (Files, libraries, documents, ect), the Backup Tasks menu allows you to set up a backup schedule for automatically running backup jobs. While reviewing the Backup Tasks menu is an article in itself, IBM provides one backup command that can help you with backup auditing, the Display Backup Library List command (DSPBCKUPL).

You can run DSPBCKUPL to display the last dates your user libraries or folders were backed up, as well as whether any of the library objects in each library were changed since the last backup. If you're running DSPBCKUPL without any parameters, you might see a display that looks something like this:

Display Library Backup List                 
System:  
 Find library  . . . . . .               Starting characters
                                                    
 Type options below, then press Enter.              
   5=Display library contents   8=Display details   
                                                    
                  -----------Backup-----------  Last
 Opt  Library     Daily     Weekly    Monthly   Backup    Changed 
      #LIBRARY    Yes       Yes       Yes       04/10/07  No  
      LIB1        Yes       Yes       Yes       04/10/07  No  
      LIB2        Yes       Yes       Yes       04/10/07  Yes
      LIB2        Yes       Yes       Yes       04/10/07  No  

In its default format, DSPBCKUPL shows you all the user libraries on your system. If you want to see all your system folders and the last dates they were backed up, you can also run DSPBCKUPL like this.

DSPBCKUPL BCKUPL(*FLR)

While DSPBCKUPL doesn't contain as much information as the QHST job messages you would retrieve with DSPLOG, it provides the following information.

Last Backup: The last date when the entire library or folder was saved.

Changed: A Yes or No field that designates whether any objects in the library of folder were changed since the last time that library/folder was saved. This information comes in handy if you're trying to determine whether any libraries that don't change on a regular basis should be omitted from a daily backup.

If you are using DSPBCKUPL for auditing purposes, you can ignore the three fields under the Backup section (Daily, Weekly, and Monthly) because they pertain to whether these libraries will be saved by using the GO BACKUP commands.

The nice thing about these two techniques is that they provide different pieces of information that speak to how complete your backup strategy is. Using DSPLOG allows you to determine whether your backup job saves all the libraries and objects you are intending to save. DSPBCKUPL records the latest dates that your user libraries and folders were backed up. Together, you can use them to audit and verify that your backup strategy is working correctly. While they may or may not meet Sarbanes-Oxley compliance, they do represent documentation that can be presented to an auditor.

--Joe


RELATED STORY

                     Post this story to del.icio.us
               Post this story to Digg
    Post this story to Slashdot


Sponsored By
COMMON

Customize your System i education in 2007 with
COMMON's 2007 Annual Conference & Expo,
April 29 - May 3, 2007 in Anaheim, California.

This premier System i education and networking event promises to be larger than our recent conferences, providing invaluable learning and networking opportunities for you and your employees.

The Annual Conference & Expo will be the flagship event of the new "COMMON…Customized" education model, offering over 500 educational sessions, hands-on labs, and all-day workshops. We've added new tracks on hot topics like PHP, open source, and IP telephony - all delivered by the most respected experts in the IT industry. In addition, the new COMMON Annual Conference & Expo will offer non-technical, professional development sessions to help IT managers resolve daily business issues.

COMMON's 2007 Annual Conference & Expo will offer:
· More session hours, including over 500 sessions and hands-on labs
   in a range of choices every hour.
· More user sessions that are driven by users, including customer experience sessions.
· More in-depth education that includes all-day pre-conference workshops,
   all-day Integrated Seminars, open labs and a wide variety of regular-length sessions.
· Emphasis on networking that provides great opportunities to network with your peers,
   IBM developers and executives, and industry experts.
· An extensive Expo of new companies showcasing the latest System i-related
   industry solutions.

The COMMON Annual Conference & Expo is one of the most cost-effective ways to gain knowledge and tools needed to meet the changing demand of IT. You'll pay a reasonable amount for intensive education, and realize a tangible, immediate return on your investment. In addition to the direct cost savings, the networking opportunities and professional contacts are immeasurable.

The COMMON 2007 Annual Conference & Expo is a System i educational and networking event that you and/or your team won't want to miss. To learn more about the conference and to register online, visit www.common.org/conference.html.

The Annual Conference & Expo is just one of the many benefits to COMMON membership, so don't miss out on your opportunity to attend this premier event.

www.common.org


Senior Technical Editor: Ted Holt
Technical Editors: Howard Arner, Joe Hertvik, Shannon O'Donnell, Kevin Vandever
Contributing Technical Editors: Joel Cochran, Wayne O. Evans, Raymond Everhart,
Bruce Guetzkow, Brian Kelly, Marc Logemann, David Morris
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

Sponsored Links

Computer Keyes:  Rapidly convert *SCS printer files into black and white or full color PDF documents
COMMON:  Join us at the 2007 conference, April 29 – May 3, in Anaheim, California
VAULT400:  Securely archive data with Instant Back-Up & 24x7 Recovery


IT Jungle Store Top Book Picks

The System i Pocket RPG & RPG IV Guide: List Price, $69.95
The iSeries Pocket Database Guide: List Price, $59.00
The iSeries Pocket Developers' Guide: List Price, $59.00
The iSeries Pocket SQL Guide: List Price, $59.00
The iSeries Pocket Query Guide: List Price, $49.00
The iSeries Pocket WebFacing Primer: List Price, $39.00
Migrating to WebSphere Express for iSeries: List Price, $49.00
iSeries Express Web Implementer's Guide: List Price, $59.00
Getting Started with WebSphere Development Studio for iSeries: List Price, $79.95
Getting Started With WebSphere Development Studio Client for iSeries: List Price, $89.00
Getting Started with WebSphere Express for iSeries: List Price, $49.00
WebFacing Application Design and Development Guide: List Price, $55.00
Can the AS/400 Survive IBM?: List Price, $49.00
The All-Everything Machine: List Price, $29.95
Chip Wars: List Price, $29.95

 

The Four Hundred
IBM Goes After Windows with User-Priced System i Servers

IBM Upgrades High-End System i5 Servers

Wheeling and Dealing to Move System i Iron

System i and the Web: Where We've Been and Where We're Going

The Linux Beacon
Canonical Updates Ubuntu Linux with 7.04 Release

Intel Details Future 45 Nanometer Chip Plans from Beijing

Dell, IBM Push Power-Saving Servers

As I See It: The Legacy

Four Hundred Stuff
Oracle Declares a 'Renaissance' for J.D. Edwards World

Shield Launches 'DR for the Masses'

IBM Addresses Object-Level Security with New Tool

More Details Emerge on Query/400's Java-Based Replacement

Big Iron
CA Tweaks Job Schedulers, Positions Them as Workload Automation

Top Mainframe Stories From Around the Web

Chats, Webinars, Seminars, Shows, and Other Happenings

System i PTF Guide
April 14, 2007: Volume 9, Number 15

April 7, 2007: Volume 9, Number 14

March 31, 2007: Volume 9, Number 13

March 24, 2007: Volume 9, Number 12

March 17, 2007: Volume 9, Number 11

March 10, 2007: Volume 9, Number 10

The Windows Observer
Vista's Security Honeymoon Is Over

'Longhorn' Nears the Gate

AMD Pushes Opteron Clocks to 3 GHz, Will Miss Q1 Revenue Targets

X4 Chipset from IBM Tuned for Tigerton Quad Core Xeon MPs

The Unix Guardian
Yen Explains Sun's Chip Strategy

Hello, New York? Buy IBM

Schwartz Blogs a Bit About the Dud Rock Chip on His Desk

As I See It: The Legacy

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

THIS ISSUE SPONSORED BY:

Help/Systems
Patrick Townsend & Associates
COMMON



TABLE OF CONTENTS
Calling SQL Functions Directly From a High Level Language Program

My Favorite Keyboard Shortcuts for RSE

Two Ways to Audit Your Backup Strategy

Four Hundred Guru

BACK ISSUES

From the IT Jungle Forums
PASE application terminates when session is closed

Compare 2 PF values

Performance-Tuning SQL Views

Need 5 senior as/400 RPG positions for 12 month contract

iSeries Career training ideas





 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement