Write a CL with the library name being passed to it. Do a DSPOBJD OBJTYPE(*FILE) to an output file for that library. Process that file and do an ENDJRNPF on each physical file.
The solution is not to restore the files. Use CPYF MBROPT(*REPLACE) CRTFILE(*YES) instead. If they are SQL tables, use INSERT with SELECT from the originals.
A “restore” is designed to recreate things as they were when saved. Don’t use it if that’s not what you want done.