Please enable JavaScript to view this site.
This topic covers backing up and restoring the Docstore database. Note: If you need to move the storage location of documents in Docstore please see Moving Document Type Storage Location.
Backing up a Docstore
This example assumes that:
Docstore library is DOCSTORE1
All documents are saved in subfolders of the IFS path: /cppd/DocStore/DOCSTORE1/
•Save the IFS files to a Save file [*SAVF] in the DocStore library:
CRTSAVF FILE(DOCSTORE1/DOCSAV)
SAV DEV('/qsys.lib/DOCSTORE1.lib/DOCSAV.file') OBJ(('/cppd/DocStore/DOCSTORE1/*')) SAVACT(*YES)
•Save the Docstore library (which now includes the IFS documents)
SAVLIB LIB(DOCSTORE1) to whatever media.
Restoring a Docstore
This will restore the IFS Save file created in the previous section to a new IFS folder for comparison:
•Restore the Docstore library to library DOCSTR_OLD
RSTLIB SAVLIB(DOCSTORE1) RSTLIB(DOCSTR_OLD) from whatever media you saved to
•Create the folder for the documents:
CRTDIR DIR('/cppd_old')
CRTDIR DIR('/cppd_old/DocStore')
CRTDIR DIR('/cppd_old/DocStore/DOCSTORE1')
•Restore the Docstore documents
RST DEV('/qsys.lib/DOCSTORE1.lib/DOCSAV.file') OBJ(('/cppd' *INCLUDE '/cppd_old'))