1〉、直接备份到磁带机中。
SAVLIB LIB(PCAS)DEV(TAP01)
2〉、备份到SAV文件中。
首先要建立备份文件(PCAS0913),然后再把要备份的库文件(PCAS)备份到备份文件(PCAS0913)里。
CRTSAVF FILE(ZYF/PCAS0913) TEXT(‘PCAS LIB BACK’)
SAVLIB LIB(PCAS) DEV(*SAVF) SAVF(ZYF/PCAS0913)
这样只要把ZYF/PCAS0913这个SAV文件保存到其他地方就可以了。如果要保存到PC机上,就用FTP
C:\Documents and
Settings\zeng_yuanfa>FTP 192.168.0.8
Connected to 192.168.0.8.
220-QTCP AT 192.168.0.8.
220 CONNECTION WILL CLOSE IF IDLE MORE THAN 5 MINUTES.
User (192.168.0.8:(none)): QSECOFR
331 ENTER PASSWORD.
Password:
230 QSECOFR LOGGED ON.
ftp> BIN
200 REPRESENTATION TYPE IS
BINARY IMAGE.
ftp> GET ZYF/PCAS0913
C:\PCAS0913.SAVF
200 PORT SUBCOMMAND REQUEST
SUCCESSFUL.
150 RETRIEVING MEMBER HPSSD IN FILE HPSSD IN LIBRARY
ZYF.
250 FILE TRANSFER COMPLETED
SUCCESSFULLY.
ftp: 1117421184 bytes received in 128.28Seconds
8710.53Kbytes/sec.
这样就把PCAS0913保存到PC机的C盘了。
把备份到PC机的文件还原到400中的操作:
1〉、先在400种建立一个库用来存放备份文件(ZYF),再在这个库下面建立对应的备份文件(PCAS0913),
CRTLIB LIB(PCAS)
CRTLIB LIB(ZYF)
CRTSAVF FILE(ZYF/PCAS0913)
然后把备份文件从PC机上传到400中。
C:\Documents and
Settings\zeng_yuanfa>FTP 192.168.0.8
Connected to
192.168.0.8.
220-QTCP AT 192.168.0.8.
220 CONNECTION WILL CLOSE IF IDLE MORE THAN 5 MINUTES.
User (192.168.0.8:(none)): qsecofr
331 ENTER PASSWORD.
Password:
230 QSECOFR LOGGED ON.
ftp> BIN
200 REPRESENTATION TYPE
IS BINARY IMAGE.
ftp> PUT C:\PCAS0913.SAVF
ZYF/PCAS0913
200 PORT SUBCOMMAND REQUEST
SUCCESSFUL.
150 SENDING FILE TO MEMBER HPSSOBJ IN FILE HPSSOBJ IN LIBRARY
ZYF.
250 FILE TRANSFER COMPLETED SUCCESSFULLY.
ftp: 70722432 bytes sent in 21.95Seconds
3222.27Kbytes/sec.
接着就在400里用RSTLIB 恢复库文件。
RSTLIB SAVLIB(PCAS) DEV(*SAVF) SAVF(ZYF/PCAS0913)
阅读(1257) | 评论(0) | 转发(0) |