• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Using Incremental IFS Backup To Speed Up Backup Time

    March 20, 2013 Hey, Joe

    Is there a trick to speeding up AS/400 Integrated File System (IFS) nightly backups? My nightly backups run over 300 minutes and 120 of those minutes are tied to the IFS backup, so it runs into production hours. Here’s the Save (SAV) command I’m using to backup the IFS.

    SAV DEV('/QSYS.LIB/TAP01.DEVD') OBJ(('/*') + 
    ('/QSYS.LIB' *OMIT) ('/QDLS' *OMIT)) + 
    SAVACT(*SYNC) ENDOPT(*UNLOAD) + 
    UPDHST(*YES) DTACPR(*DEV) 
    

    — C

    To cut down on IFS backup times, you can modify your backups to perform a full IFS backup once a week and an incremental backup the other nights of the week. Here’s how this works.

    1. Perform a weekly full IFS backup, at a time where longer processing times won’t affect system performance (say Sunday morning at 3 a.m). Use the same command you sent me.

    SAV DEV('/QSYS.LIB/TAP01.DEVD') OBJ(('/*') + 
    ('/QSYS.LIB' *OMIT) ('/QDLS' *OMIT)) + 
    SAVACT(*SYNC) ENDOPT(*UNLOAD) + 
    UPDHST(*YES) DTACPR(*DEV) 
    

    This backup will take the same amount of time as the backups you’re performing now, but you’ll only be running it once a week during off-hours.

    One thing to note: Make sure that the Update History (UPDHST) parameter stays at its current value of *YES. This tells the system to update the save history (archive bit) of all objects that were saved with the SAV command. This is important because your object’s save history will be used in the incremental backup I’ll explain next.

    2. Use the SAV command below to perform an incremental backup on the other days of the week. Call this the daily backup. This backup command will only save the IFS files that were changed since the last full backup.

    SAV DEV('/QSYS.LIB/TAP01.DEVD') OBJ(('/*') 
    ('/QSYS.LIB' *OMIT) ('/QDLS' *OMIT))
    SAVACT(*SYNC) ENDOPT(*UNLOAD) CHGPERIOD(*LASTSAVE) 
    UPDHST(*NO)
    DTACPR(*DEV)
    

    This incremental backup depends on the following two parameters.

    • Time period for last change (CHGPERIOD)–When CHGPERIOD is set to *LASTSAVE, the SAV command backs up all the objects that have changed since the last time the SAV command was run with the UPDHST parameter set to *YES.
    • Update History (UPDHST)–When set to *NO, the SAV command does not update the archive bit (history information) for any object it saves.

    Since this command is only saving changed objects since the last full backup, it will run a lot faster than the weekly full IFS backup. What’s more, since you’re not updating the object date and time archive bit, this SAV command will always backup ALL the objects that have changed since your last weekly save. Each daily tape will be a complete incremental backup of all changed objects since the last full IFS save in step 1.

    The end result is that you have both a full and an incremental backup of the IFS. If you needed to restore the entire IFS, you would restore from the full system backup first, and then restore the most recently changed objects from the latest incremental backup.

    Determining Whether An IFS Object Has Been Modified

    You can also use either the green screen or System i Navigator to determine if an IFS object has been updated since the last time it was backed up.

    From the green screen, use the Work with Object Links (WRKLNK) command to navigate to the object you want to check. Place an ‘8’=Display Attributes in front of the object and press ENTER. This will display the following Display Attributes screen.

    Figure 1

    (Click graphic to enlarge.)

    Look at the Need to archive (System) line on this screen. This setting is the archive bit. If it is set to ‘Yes’, the IFS object has been changed since the last backup. If set to ‘No’, the object has not changed.

    To view an object’s archive bit in the System i Navigator package that comes with IBM i Access for Windows 7.1, open the File Systems→Integrated File System→Root path for your target partition. Navigate to the object you want to check the archive bit for and right-click on that object. Select Properties from the pop-up menu that appears. Click on the General tab of the Properties screen for your object. You’ll see a screen that looks something like this.

    Look at the Archive check box under the i5/OS area. If Archive is checked, that object has changed since the last full IFS backup. If the Archive check box is unchecked, the object has not changed since the backup.

    HTH

    –Joe

    EDITOR’S NOTE: This tip was tested with the SAV command that comes with the IBM i 6.1.1 operating system and the System i Navigator program that is included with IBM i Access for Windows 7.1.

    Follow Me On My Blog, On Twitter, And On LinkedIn

    Check out my blog at joehertvik.com, where I focus on computer administration and news (especially IBM i); vendor, marketing, and tech writing news and materials; and whatever else I come across.

    You can also follow me on Twitter @JoeHertvik and on LinkedIn.

    Joe Hertvik is the owner of Hertvik Business Services, a service company that provides written marketing content and presentation services for the computer industry, including white papers, case studies, and other marketing material. Email Joe for a free quote for any upcoming projects. He also runs a data center for two companies outside Chicago. Joe is a contributing editor for IT Jungle and has written the Admin Alert column since 2002.



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

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    WorksRight Software

    Do you need area code information?
    Do you need ZIP Code information?
    Do you need ZIP+4 information?
    Do you need city name information?
    Do you need county information?
    Do you need a nearest dealer locator system?

    We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

    The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

    PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

    Just call us and we’ll arrange for 30 days FREE use of either ZIP/CITY or PER/ZIP4.

    WorksRight Software, Inc.
    Phone: 601-856-8337
    Fax: 601-856-9432
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    Townsend Security:  IBM i Encryption Without Program Changes!   >> View Webcast
    Northeast User Groups Conference:  23nd Annual Conference, April 22 - 24, Framingham, MA
    COMMON:  Join us at the 2013 Conference & Expo, April 7 -10 in Austin, TX

    More IT Jungle Resources:

    System i PTF Guide: Weekly PTF Updates
    IBM i Events Calendar: National Conferences, Local Events, and Webinars
    Breaking News: News Hot Off The Press
    TPM @ The Reg: More News From ITJ EIC Timothy Prickett Morgan

    Linoma Showcases MFT Customer Successes Via Video Midrange Power7+ Servers: Scaling Up Means Bring Your Checkbook

    Leave a Reply Cancel reply

Volume 13, Number 6 -- March 20, 2013
THIS ISSUE SPONSORED BY:

WorksRight Software
ProData Computer Services
Northeast User Groups Conference

Table of Contents

  • Tips For Using RDP’s DDS Designer
  • Using SQL Joins With Tree Structures
  • Using Incremental IFS Backup To Speed Up Backup Time

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Public Preview For Watson Code Assistant for i Available Soon
  • COMMON Youth Movement Continues at POWERUp 2025
  • IBM Preserves Memory Investments Across Power10 And Power11
  • Eradani Uses AI For New EDI And API Service
  • Picking Apart IBM’s $150 Billion In US Manufacturing And R&D
  • FAX/400 And CICS For i Are Dead. What Will IBM Kill Next?
  • Fresche Overhauls X-Analysis With Web UI, AI Smarts
  • Is It Time To Add The Rust Programming Language To IBM i?
  • Is IBM Going To Raise Prices On Power10 Expert Care?
  • IBM i PTF Guide, Volume 27, Number 20

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle