I've listed the commands required to complete an opt 21, 22 and 23.
Opt 21 will get you everything on the system but it must be ran while the system is in a restricted status.
For more info: <a href="http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/rzaiu/rzaiurzaiu2tv.htm">click</a>
For option 21 (Entire system) these prompt displays appear:
ENDSBS SBS(*ALL) OPTION(*IMMED)
SAVSYS
SAVLIB LIB(*NONSYS) ACCPTH(*YES)
SAVDLO DLO(*ALL) FLR(*ANY)
SAV DEV('/QSYS.LIB/media-device-name.DEVD') +
OBJ(('/*') ('/QSYS.LIB' *OMIT) +
('/QDLS' *OMIT)) +
UPDHST(*YES)
STRSBS SBSD(controlling-subsystem)
For option 22 (System data only) these prompt displays appear:
ENDSBS SBS(*ALL) OPTION(*IMMED)
SAVSYS
SAVLIB LIB(*IBM) ACCPTH(*YES)
SAV DEV('/QSYS.LIB/media-device-name.DEVD') +
OBJ(('/QIBM/ProdData') +
('/QOpenSys/QIBM/ProdData')) +
UPDHST(*YES)
STRSBS SBSD(controlling-subsystem)
For option 23 (All user data) these prompt displays appear:
ENDSBS SBS(*ALL) OPTION(*IMMED)
SAVSECDTA
SAVCFG
SAVLIB LIB(*ALLUSR) ACCPTH(*YES)
SAVDLO DLO(*ALL) FLR(*ANY)
SAV DEV('/QSYS.LIB/media-device-name.DEVD') +
OBJ(('/*') ('/QSYS.LIB' *OMIT) +
('/QDLS' *OMIT) +
('/QIBM/ProdData' *OMIT) +
('/QOpenSys/QIBM/ProdData' *OMIT)) +
UPDHST(*YES)
STRSBS SBSD(controlling-subsystem)
Another command to consider is the Save Storage (SAVSTG) command. This does a complete save, the downside is you would need to do a complete system restore, you cannot restore individual objects.
Hope this helps,
Bill Poulin
Last Wiki Answer Submitted: November 19, 2008 3:59 pm by slack4002,680 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
link
Here’s a good link for dissecting the option 21 backup.