How To
Summary
Cloud Storage Solutions for i only works with IFS files. It does not work with IBM i libraries. In order to send a library to the cloud, you need to first save it to virtual tape, then copy the virtual tape image to the cloud
Environment
Create Virtual tape device and image catalog:
Use this document to create a virtual optical device and image catalog to use for the save:
Use this document to create a virtual optical device and image catalog to use for the save:
Create and test cloud resource:
Use this document to Create and test cloud resource:
Cloud Storage Solutions for i - Using CPYTOCLD & CPYFRMCLD to copy data to and from the cloud
Cloud Storage Solutions for i - Using CPYTOCLD & CPYFRMCLD to copy data to and from the cloud
Save library to virtual tape:
You can use any SAV* command to save data to the virtual tape. Use this command to save library TESTLIB to the virtual tape device:
SAVLIB LIB(TESTLIB) DEV(TAPVRT01)
To confirm your library was saved to the virtual tape, use this command:
DSPTAP TAPVRT01
SAVLIB LIB(TESTLIB) DEV(TAPVRT01)
To confirm your library was saved to the virtual tape, use this command:
DSPTAP TAPVRT01
Send the virtual tape image to the cloud:
If you used the basic steps for creating virtual tape, your volume image catalog uses directory /virtualtap, and the volume is VOL001. This means that if you do a WRKLNK '/virtualtap/*' you see the following:


VOL001 is your virtual tape image that you want to send to the cloud. To send VOL001 to the cloud, use the following command:
CPYTOCLD RESOURCE(IBMCOS)
LOCALFILE('/virtualtap/VOL001')
CLOUDFILE(VOL001)
CPYTOCLD RESOURCE(IBMCOS)
LOCALFILE('/virtualtap/VOL001')
CLOUDFILE(VOL001)
To verify the file was sent, you can use WRKSTSICC *ALL *ALL checking for a Successful status:


You can also check your bucket on your cloud providers website to make sure the file is there.
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.3.0"}]
Was this topic helpful?
Document Information
Modified date:
18 May 2021
UID
ibm16453101