wtsi-hgi / irods-to-s3

iRODS to S3 copy tool
GNU General Public License v3.0
0 stars 0 forks source link
irods s3

iRODS to S3

Copy files from iRODS to S3.

Usage

is3 [-h] [-f] [-R] [--make-bucket] [--ignore-avus] [--dry-run] [-v]
    [--forbid-special | --allow-restricted] [--s3cfg S3CFG]
    SOURCE [SOURCE ...] s3://BUCKET[/KEY]

Positional Arguments

SOURCE              iRODS source data objects or collections
s3://BUCKET[/KEY]   S3 destination

Optional Arguments

-f, --force         Overwrite files that exist at the destination
-R, --recursive     Copy iRODS collections recursively
--make-bucket       Make S3 bucket if it does not exist
--ignore-avus       Don't replicate the iRODS AVUs on S3
--dry-run           Don't transfer any data, only log what will happen
-v, --verbose       Verbose output

S3 Key Character Control

--forbid-special    Forbid S3 special characters in the destination keys
--allow-restricted  Allow S3 restricted characters in the destination keys

Special characters are those that might require special handling in S3 keys:

Restricted characters are those that ought to be avoided in S3 keys:

s3cmd Interaction

--s3cfg S3CFG       Use s3cmd configuration, rather than from environment

By default, the S3 configuration will be taken from the environment variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and S3_ENDPOINT_URL. Alternatively, the s3cmd configuration in file S3CFG can be used.