I like to devote Friday to save/restore, if you have seen the trend of my posts. Let’s close the week with a backup gap that is quiet, common, and genuinely painful when it bites: saving your objects but not your security. An easy fix, but again, this is why we test our recoveries. If you get anything from my posts, it is that you need to test your recoveries.
Here is the scenario. Disaster strikes, you restore your libraries from a good, tested save, and everything comes back. The objects are all there. Then you discover none of them have their private authorities anymore. Every carefully built authorization list, every private authority granting the right people the right access, is gone because that information doesn’t live with the objects. It lives in the security data, and if you did not save that separately, restoring your libraries brings back the what but not the who-can-touch-it. Ouch.
The information you need is saved with one command:
SAVSECDTA DEV(TAP01)
SAVSECDTA saves your user profiles, private authorities, and authorization lists. It can be run anytime; it doesn’t require you to be in a restricted state. On the recovery side, you restore profiles with RSTUSRPRF *ALL and then, critically, run RSTAUT after restoring all your objects to reestablish private authorities on your restored objects. Miss that last step and you have a system full of objects that technically exist but that nobody has the right authority to use, which on a secured system is its own kind of outage.
This gets missed because security data changes less visibly than application data, so it is easy to leave out of a save plan built around protecting business data. GO SAVE options 21, 22, and 23 all include it. But if you run a custom save, this is exactly the piece that quietly goes missing, right alongside the IFS we talked about last Friday.
So here is the weekend gut check, and it pairs with last week’s. Confirm your save plan includes your security data, and confirm you know the restore sequence: profiles, then objects, then DLO, then IFS, and then RSTAUT. A recovery that brings back your data but not your authorities is only half a recovery, and you do not want to learn which half you are missing during the real thing.
Have a great weekend, everyone.
Originally posted on LinkedIn. Join the conversation there.
Leave a Reply