Home > AS/400 Tips > iSeries administrator tips > Backing up remote systems -- eliminate the tape
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

Backing up remote systems -- eliminate the tape


Kris Veitch
10.03.2001
Rating: -3.37- (out of 5)


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


We currently maintain a number of iSeries 400's. The most critical is our ASP (application service provider) system. We have a large customer base on that system that runs 23 hours each day. The one-hour window is for backups and restoration to our backup (HOTSITE) system. These two systems reside in different states, and we needed a way to update the backup (HOTSITE) system without having to save the data to tape from our ASP production system and send it over night to restore on the backup (HOTSITE) machine.

At the time, we had not received our high-availability data replication software, so we created a process of programs to save the data and send it using FTP and the Job Scheduler. This is a totally automated process. The first step was to get a full set of user libraries to the backup system making sure that the HISTORY parameter on the SAVLIB command was set to *YES. Once restored on the backup system, this is the process with the programs that we used to accomplish the job:

Each night we ran a SAVCHGOBJ with the REFDATE parm set to *SAVLIB on the required libraries on the ASP system. That insured a cumulative save during the week. Each Sunday we performed a SAVCHGOBJ first, then a SAVLIB on the required user libraries with the UPDHST parm set to *YES. That would reset the flags so that we could start a new round of SAVCHGOBJ cumulative saves for the next week.

The process looks complicated and cumbersome, (and truth be known, it took a bit to get it right), but all in all it was rock solid and rather easy to understand and maintain. This process moved over 4.5 gigabytes of compressed data each night to the HOTSITE across a T-1 connection in fewer than four hours.

If your interested in the CL, RPG and FTP programs, they are available for free. Just send an email to kris.veitch@didean.com or Donovan.Wesly@didean.com. By the way, Donovan is quite the wizard at FTP scripting and the iSeries 400.

LEGEND for the Libraries:
IDTAQ contained saves of DTAQ's (DTAQ's required separate saves due to the nature of the object
IBACKUP contained all of the save files of the individual libraries
TRANSFER contained the final save file of all individual save files from IBACKUP to be FTP'ed to HOTSITE

Production (ASP)

8 pm

  • Clear the IDTAQ and IBACKUP libraries.
  • Job schedule entry CLRIDTAQ and CLRILIB
  • This is accomplished by running the CLRLIB command

11 pm

  • Rename of the IDTAQ and IBACKUP save files in library TRANSFER. They will be renamed to IQ + mm,dd for IDTAQ save file and I + MM,DD for IBACKUP save file.
  • Job schedule entry RENAME and RENAMEDTAQ
  • Programs RNMIBKUP for IBACKUP and RNMIDTAQ for IDTAQ.

12:01 am

  • Create save files for the data queues from the file library and work library of each customer in library IDTAQ. The save files use the naming convention of "Customer code + MM + DD + version + D" for file library and "Customer code + MM + DD + version + E" for work library. All data queues from each customer's library are saved to there respective save file.
  • Job schedule entry CRTIDTAQ
  • Program CRTIADTA

12:20 am

  • Create save files for the save changed objects from the file, work, and save library of each customer in library IBACKUP. The save files use the naming convention of "Customer code + MM + DD + version + F" for file library, "Customer code + MM + DD + version + W" for work library, and "Customer code + MM + DD + version + S" for save library. These save files contain the save changed objects for each customers library.
  • Job schedule entry CRTCSTSAVS
  • Program CRTCSTSAVS

1:30 am

  • Save the IDTAQ and IBACKUP libraries to save files in TRANSFER.
  • Job schedule entry SAVIDTAQ and SAVISAVF
  • Programs SAVIDTAQ and SAVIBKUP.

2 am

  • FTP the IDTAQ save file to the HOTSITE
  • Job schedule entry FTPIDTAQ
  • Program FTPIDTAQ

3:30 am

  • FTP the IBACKUP library to the HOTSITE
  • Job schedule entry FTPISAVF
  • Program FTPACOMM

Backup (HOTSITE)

1:30 am

  • Clear save file IDTAQ in library TRANSFER.
  • Job schedule entry CLRIDTAQ
  • Program CLRIDTAQ

2 am

  • Clear save file IBACKUP in library TRANSFER.
  • Job schedule entry CLRISAVF
  • Program CLRSAVF

4 am

  • Delete outfiles created for previous day's jobs. The outfiles are used to restore the objects in the individual save files.
  • Job schedule entry DLTOUT and DLTOUT2
  • Programs DLTOUT and DLTOUT2

7:30 am

  • Delete data queues out of the file and work libraries of each individual customers.
  • Job schedule entry DLTDTAQS
  • Program DLTDTAQS

7:45 am

  • Delete old IDTAQ library (previous day) and restore current days IDTAQ library from save file in TRANSFER.
  • Job schedule entry RSTDTAQ
  • Program RSTDTAQ

8:20 am

  • Create outfile OUTPUT2 in QGPL for IDTAQ.
  • Job schedule entry CRTOUTPUT2
  • Program CRTOUT2

8:30 am

  • Restore data queues from the individual save files in library IDTAQ.
  • Job schedule entry RSTIDTAQ
  • Program RSTIDTAQ

9:45 am

  • Delete old IBACKUP library (previous day) and restore current days IBACKUP library from save file in TRANSFER.
  • Job schedule entry RSTIA
  • Program RSTIA

10:20 am

  • Create outfile OUTPUT in QGPL for IBACKUP.
  • Job schedule entry CRTOUTPUT
  • Program CRTOUT

10:30 am

  • Restore the save change objects from the individual save files in library IBACKUP.
  • Job schedule entry RSTISAVF
  • Program RSTISAVF

------------------------------------
About the author: Kris oversees an iSeries technical support subsidiary, Didean Solutions, which he established to offer systems management and technical consulting for Innovative Computing Corp.'s transportation customer base.

========================
MORE INFORMATION
========================


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.


Submit a Tip




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



RELATED CONTENT
iSeries administrator tips
Translating Linux for IBM i admins: Using GUI to make it easy
Translating Linux for IBM i admins: Working with jobs and networking
OpenOffice: What to know before making the transition from Microsoft Office
OpenOffice: An enterprise open source solution
Database performance comparisons on IBM i
Translating Linux for IBM i admins: User profile commands
Modern System i reports using Client Access
Tips for installing Lotus Domino server on a System i partition
The iSeries Blog has a new home on IT Knowledge Exchange
Virtualization for IBM i: Backups

Implementation
Getting modules to adopt authorities from the main program
iSeries i5/OS: Top 10 Q&As
iSeries i5/OS: Top 10 Q&As
Using the SPLF0200 format in QUSLSPL API
New option within the WRKSYSACT command
Identify files used in all queries
Security Tools can help manage your system security
Client Access Express password cache
Check constraint allows database admins to sleep a bit better at night
See the users with *change or *all authority
Implementation Research

Performance
Will overloaded discs impact iSeries performance?
Extend storage capacity on an IBM i without negatively effecting system performance
Database drivers on the i: MySQL vs. IBM Toolbox
Performance tuning for IBM i: The basics and beyond
IBM releases new Power products for the midrange
Top System i admin tips for 2006
Catholic Charities keeps track of homeless with iSeries
i5 error messages: What you need to know
IBM races for clock speed
System shutting down after cleanup

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
AS/400  (Search400.com)
i5/OS  (Search400.com)
iSeries  (Search400.com)
OS/400  (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