Last Friday I asked when you last tested a restore. This Friday, a harder question: Are you sure everything is even getting saved?
Not “does the save job end normally.” That tells you the job ran. It does not tell you what got left out. Objects get created in libraries that are not in the save plan. Somebody adds a library and forgets to add it to the backup. A save-while-active skips a locked object and the job still ends fine.
Here is how you find what is slipping through:
SELECT OBJNAME, OBJTYPE,
SAVE_TIMESTAMP, LAST_USED_TIMESTAMP
FROM TABLE(QSYS2.OBJECT_STATISTICS('YOURLIB', '*ALL'))
WHERE SAVE_TIMESTAMP IS NULL
OR SAVE_TIMESTAMP < CURRENT TIMESTAMP - 30 DAYS;
Every row that comes back is an object in that library that has either never been saved or has not been saved in a month. On a library that is supposed to be in your nightly save, that list should be empty or very close to it.
When it is not empty, you have found the gap between the backup you think you have and the backup you actually have. That gap is exactly where disasters live, because you do not discover it until the day you reach for the object that was never on the tape. Now what?
Pick your three most important libraries. Run this against each before you leave. An empty result is a good weekend. A non-empty result is Monday’s most important job.
I always say during my presentations: “Your restore is only as good as your backup”.
Have a good weekend, but check your system before you leave today. The job you save may be your own.
#IBMi #Backup #DisasterRecovery #Powersystem
Originally posted on LinkedIn. Join the conversation there.
Leave a Reply