Home > Ask the AS/400 Experts > Questions & Answers > Restoring procedure after using "SAVCHGOBJ"
Ask The iSeries 400 Expert: Questions & Answers
EMAIL THIS

Restoring procedure after using "SAVCHGOBJ"

Ken Graap EXPERT RESPONSE FROM: Ken Graap

Pose a Question
Other iSeries 400 Categories
Meet all iSeries 400 Experts
Become an Expert for this site


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


>
QUESTION POSED ON: 04 February 2005
If I use "SAVCHGOBJ" for my save strategy Monday through Friday and I need to restore an object from the Friday backup, why is it necessary to restore starting from Monday through the Friday backup? We want to shorten our backup window by saving changed objects, but we're leery about such a seemingly extensive restore procedure. Can you shed some light on this?


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


RELATED CONTENT
Data backup, storage and retrieval on iSeries
Authority restrictions on the AUTL on backup/test systems and AUTL on live system
Perform a full system backup without user profile QSECOFR
Faster backup method for System i
Solve problems concerning the ALLOW OBJECT DIFFERENCES parameter when restoring a library
System i backup not advised using network NETBACKUP
How to clear expired BRMS created *SAVF files from System i
Restore a full system backup from the production partition to the test partition
Tivoli Service Manager 6 released with DB2 integration and dedupe
Remove a media with a *PERM expiration date from the inventory
Booting iSeries from internal or external sources
Data backup, storage and retrieval on iSeries Research

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


You made a good choice using SAVCHGOBJ between full backups. It can significantly reduce the amount of time spent doing daily backups. It does, however, increase the amount of time needed to restore. This is a good trade off though as you will always spend much more time saving data than restoring it.

There are actually two ways to use SAVCHGOBJ, though.

The first way is to specify the reference date and time of the last backup. This is the kind of backup that you were referring to and this is the kind of backup implemented from the GO BACKUP menu. This is called an Incremental Backup. Only data that has changed since the LAST BACKUP (SAVLIB or SAVCHGOBJ) is saved. To restore from this kind of backup, you have to restore your FULL (SAVLIB) backup first and then restore each DAILY SAVCHGOBJ Incremental Backup.

The other kind of backup is referred to as a Cumulative Backup. This kind of backup saves anything that has changed since the last FULL (SAVLIB) backup. Each run of a cumulative backup replaces the previous one. So as the week progresses, a cumulative tape backup will most likely get bigger and bigger and the backup probably will run longer and longer. However, when you need to restore DATA, all you need to do is restore the last full backup and then restore the most current cumulative backup.

The SAVCHGOBJ command is actually defined to do a cumulative backup by default:

Reference date . . . . . . . . . REFDATE *SAVLIB

I'm not sure why the default for the GO BACKUP daily save is to do an incremental instead of a cumulative save. I guess it is implemented this way because it is probably the fastest way to save changed data. If you wanted to do a cumulative backup, you would have to execute the SAVCHGOBJ command from a program of your own.

So it is up to you... faster backup causes a longer, more complicated restore or slower backup gives you a simpler, faster restore process. Only you can decide what is best in your environment.

Now that's not the whole story, though. There are features in OS/400 such as "Journaling" and "Save-While-Active backups" that let you save your data in the least amount of time while still being able to do a cumulative backup. Using these features makes the backup process even more complicated, though. But the time savings can make it well worth the additional complexity.

This is a discussion that goes well beyond your question though. So, I'll stop right here!

Good luck on whatever backup implementation you choose to use. One very important bit of advice though... Develop and TEST TEST TEST your recovery plan. It is always best to discover holes in your backup strategy before you have real disaster recovery event!

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

Visit the ITKnowledge Exchange and get answers to your backup & recovery questions fast.

Search400.com's targeted search engine: Get relevant information on backup & recovery.

Check out this Search400.com Featured Topic on 30 backup/recovery tips in 30 minutes .




Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



iSeries Networking - Printing, Remote Access, TCP/IP
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