Converting file-based storage to S3 storage
Maximo® Manage provides you with a tool to convert file-based attachments to S3 attachments.
About this task
When you deploy Maximo Manage, you can find a new shell script that is named file2s3.sh in \tools\maximo folder.
Procedure
Run the shell script file2s3.sh by using the following parameters:
Parameter name | Description | Example |
---|---|---|
-bBucketName | Bucket name | -bqabucket |
-xAccessKey | Access key | -x6xg5v1EacUtyMLXgzXbg |
-sSecretKey | Secret key | -xiaAKhsSYKM51u39yyIHo5l4jYzgCf5NHHJUUltm5 |
-rEndpoint | End point or URL of the S3 provider | -rs3.us.cloud-object-storage.appdomain.cloud |
-wwhere cause for filtering docinfo table | A where clause for filtering docinfo table. The document information table stores links to all the documents. | -w"(document='TESTDOC')" |
Note: The maxinst or admin pod must be able to access the folder locations of the attachments for
the tool to work.
For example,
./files2s3.sh -bqabucket -x6xg5v1EacUtyMLXgzXbg
-siaAKhsSYKM51u39yyIHo5l4jYzgCf5NHHJUUltm5 -rs3.us.cloud-object-storage.appdomain.cloud
-w"(DOCUMENT='TESTDOC')"