### start command Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/cli.md Starts the service that executes the submitted job. ```bash bash console.sh start ``` -------------------------------- ### Direct storage download configuration (srcType=youpai) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-youpai.md Example job.cfg for migrating from Upyun to OSS with direct storage download (isDownloadFromCdn=false). Uses operator account credentials and v0 API endpoint. ```ini jobName=local_test srcType=youpai srcAccessKey=operator srcSecretKey=password srcDomain=http://v0.api.upyun.com srcBucket=mybucket srcPrefix=docs/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou-internal.aliyuncs.com destBucket=mybucket destPrefix=docs/ jobType=import isDownloadFromCdn=false ``` -------------------------------- ### Destination settings INI example Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/job-config.md Example destination configuration for Alibaba Cloud OSS. Use the -internal domain on ECS instances; never include the bucket prefix in the domain. ```ini destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou-internal.aliyuncs.com destBucket=mybucket destPrefix=docs/ ``` -------------------------------- ### CDN-accelerated download configuration (srcType=youpai) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-youpai.md Example job.cfg for migrating from Upyun to OSS with CDN-accelerated download (isDownloadFromCdn=true). File list is fetched from storage, data is downloaded from CDN using cdnDomain + key. ```ini jobName=upyun_cdn_job srcType=youpai srcAccessKey=operator srcSecretKey=password srcDomain=http://v1.api.upyun.com srcBucket=bk-upyun srcPrefix=media/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-shanghai.aliyuncs.com destBucket=bk-oss destPrefix=media/ jobType=import isDownloadFromCdn=true cdnDomain=http://cdn.example.com ``` -------------------------------- ### Start service with console.bat start Source: https://github.com/aliyun/ossimport/blob/master/README.md Start the OssImport service in Windows cmd.exe. This is part of the step-by-step workflow after submitting the job. ```bash console.bat start ``` -------------------------------- ### Example job.cfg with srcType=http Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-http.md Configuration for HTTP-based import. Requires httpListFilePath, httpPrefixColumn, relativePathColumn. No srcAccessKey, srcSecretKey, srcDomain, srcBucket, srcPrefix needed. ```ini jobName=local_test srcType=http httpListFilePath=c:/example/http.list httpPrefixColumn=1 relativePathColumn=2 destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou-internal.aliyuncs.com destBucket=mybucket destPrefix=docs/ jobType=import isAuditAfterImport=true auditMode=general ``` -------------------------------- ### List all console.sh commands Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/cli.md Shows the full set of positional arguments accepted by console.sh: clean, submit, start, retry, stop, and version. ```bash bash console.sh clean bash console.sh submit bash console.sh start bash console.sh retry bash console.sh stop bash console.sh version ``` -------------------------------- ### Minimal conf/local_job.cfg (srcType=local) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/job-config.md A minimal job configuration for local source type. Sets jobName, srcType, srcPrefix, destination credentials and bucket, destPrefix, and jobType. Use as a starting point for local imports. ```ini jobName=local_test srcType=local srcPrefix=/home/admin/example/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou-internal.aliyuncs.com destBucket=mybucket destPrefix=docs/ jobType=import ``` -------------------------------- ### Run import.sh for Linux/Mac Source: https://github.com/aliyun/ossimport/blob/master/README.md Run the all-in-one command for Linux/Mac users in bash/terminal. It automatically runs all steps including start service, submit job, and retry failed tasks. If the tool has been run before, it prompts to resume the previous job; type 'Yes' to resume or 'No' to start a new job. ```bash import.sh ``` -------------------------------- ### Example HTTP list file (c:/example/http.list) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-http.md Two-column list file (URL prefix and relative path) separated by whitespace. Row 1 imports to OSS path destPrefix + "bb.jpg"; row 2 imports to destPrefix + "aa/bb.jpg". ```text 127.0.0.1/aa/ bb.jpg 127.0.0.1/ aa/bb.jpg ``` -------------------------------- ### Run import.bat for Windows Source: https://github.com/aliyun/ossimport/blob/master/README.md Run the all-in-one command for Windows users in cmd.exe. It automatically runs all steps including start service, submit job, and retry failed tasks. If the tool has been run before, it prompts to resume the previous job; type 'Yes' to resume or 'No' to start a new job. ```bash import.bat ``` -------------------------------- ### Example — large object set with small tasks (job.cfg) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-s3.md Configuration for migrating a large set of small objects from S3 to OSS. Uses taskObjectCountLimit and taskObjectSizeLimit to control task size, and isSkipExistFile=true to skip existing files. ```ini jobName=s3_to_oss srcType=s3 srcAccessKey=AKIA**** srcSecretKey=**** srcDomain=http://s3.ap-northeast-1.amazonaws.com srcBucket=bk-s3 srcPrefix=media/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-shanghai.aliyuncs.com destBucket=bk-oss destPrefix=media/ jobType=import taskObjectCountLimit=10000 taskObjectSizeLimit=1000000000 isSkipExistFile=true ``` -------------------------------- ### COS v3 (no srcDomain) job.cfg example Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-cos.md Example configuration for importing from Tencent COS v3, which does not require the srcDomain option. Includes a leading slash in srcPrefix. ```ini jobName=cos_v3_job srcType=cos srcAccessKey=AKID**** srcSecretKey=**** appId=1252883280 srcBucket=bk-cos srcPrefix=data/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-shenzhen.aliyuncs.com destBucket=bk-oss destPrefix=data/ jobType=import ``` -------------------------------- ### Example — conf/local_job.cfg Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-local.md A complete job configuration for migrating local files to OSS. Only srcPrefix is required; srcAccessKey, srcSecretKey, srcDomain, and srcBucket are left empty. The local file at srcPrefix + relativePath is migrated to destDomain/destBucket/destPrefix + relativePath. ```ini jobName=local_test isIncremental=false incrementalModeInterval=86400 srcType=local srcPrefix=/home/admin/example/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou-internal.aliyuncs.com destBucket=mybucket destPrefix=docs/ jobType=import isSkipExistFile=false taskObjectCountLimit=10000 taskObjectSizeLimit=1000000000 scanThreadCount=1 maxMultiThreadScanDepth=1 uploadThreadNumPerLargeFile=3 multipartUploadThreshold=150m multipartUploadPartSize=50m isServerSideEncryption=false isAllowSymbolicLink=false getObjectMetaMode=stat isAuditAfterImport=true auditMode=general ``` -------------------------------- ### Example — large-file tuning with symlink upload Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-local.md A job configuration for large-file tuning with symlink upload. Sets multipartUploadThreshold to 1024m and uploadThreadNumPerLargeFile to 4, and enables isAllowSymbolicLink. Note that when uploadThreadNumPerLargeFile > 1, workerRecordMd5 is invalid. ```ini jobName=local_test srcType=local srcPrefix=/mnt/data/archive/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou-internal.aliyuncs.com destBucket=mybucket destPrefix= multipartUploadThreshold=1024m multipartUploadPartSize=50m uploadThreadNumPerLargeFile=4 isAllowSymbolicLink=true ``` -------------------------------- ### Example — Beijing source, incremental sync Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-bos.md Configuration for an incremental import from a Beijing BOS bucket. Sets isIncremental=true with incrementalModeInterval=3600 seconds (recommended minimum) and isSkipExistFile=true to skip existing OSS objects. ```ini jobName=bos_incremental srcType=bos srcAccessKey=BOS_AK srcSecretKey=BOS_SK srcDomain=http://bj.bcebos.com srcBucket=bk-bos srcPrefix=data/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-beijing.aliyuncs.com destBucket=bk-oss destPrefix=data/ jobType=import isIncremental=true incrementalModeInterval=3600 isSkipExistFile=true ``` -------------------------------- ### Run import.sh / import.bat all-in-one flow Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/cli.md Invoke the all-in-one launcher from its containing directory. On Linux/Mac use 'bash import.sh'; on Windows use 'import.bat'. No arguments are documented; the script orchestrates start, submit, transfer, audit, and retry. ```bash bash import.sh # Linux/Mac import.bat # Windows cmd.exe ``` -------------------------------- ### COS v4 East China (Shanghai) job.cfg example Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-cos.md Example configuration for importing from Tencent COS v4 in the East China (Shanghai) region. Requires srcDomain set to 'sh' and includes audit settings. ```ini jobName=local_test srcType=cos srcAccessKey=AKID**** srcSecretKey=**** appId=1252883280 srcDomain=sh srcBucket=mybucket srcPrefix=/docs/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou-internal.aliyuncs.com destBucket=mybucket destPrefix=docs/ jobType=import isSkipExistFile=false multipartUploadThreshold=150m multipartUploadPartSize=50m isAuditAfterImport=true auditMode=general ``` -------------------------------- ### Resume-and-retry session with import.sh Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/cli.md Example interactive session: run 'bash import.sh', answer 'Yes' to resume a previous job, then 'Y' to retry failed tasks. Successful tasks are not re-run during retry. ```bash bash import.sh # "Resume previous job? [Yes/No]" → Yes # ... job runs, refreshes status ... # "Retry failed tasks? [Y/N]" → Y ``` -------------------------------- ### Example http.list with prefix column Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-http.md Single-row list file used to illustrate how httpPrefixColumn and relativePathColumn affect the resulting OSS key. With httpPrefixColumn=1 and relativePathColumn=2, the object key becomes destPrefix + "a/b.jpg". ```text cdn.example.com/pub/ a/b.jpg ``` -------------------------------- ### Basic migration with stat meta (getObjectMetaMode=stat) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-qiniu.md Example job configuration for migrating from Qiniu to OSS using the default stat meta retrieval method. Requires srcType=qiniu, Qiniu access keys, source domain and bucket, and OSS destination details. The srcPrefix is set to 'docs/' to synchronize only that prefix. ```ini jobName=local_test srcType=qiniu srcAccessKey=QINIU_AK srcSecretKey=QINIU_SK srcDomain=http://mybucket.u.qiniudn.com srcBucket=mybucket srcPrefix=docs/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou-internal.aliyuncs.com destBucket=mybucket destPrefix=docs/ jobType=import getObjectMetaMode=stat ``` -------------------------------- ### HEAD-based meta retrieval (getObjectMetaMode=head) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-qiniu.md Alternative job configuration using HTTP HEAD requests for object meta retrieval. Sets getObjectMetaMode=head and auditMode=simple. Uses a different source domain and destination prefix (qiniu-backup/) compared to the stat example. ```ini jobName=local_test srcType=qiniu srcAccessKey=QINIU_AK srcSecretKey=QINIU_SK srcDomain=http://mybucket.b0.upaiyun.com srcBucket=mybucket srcPrefix= destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou.aliyuncs.com destBucket=mybucket destPrefix=qiniu-backup/ jobType=import getObjectMetaMode=head auditMode=simple ``` -------------------------------- ### Example — US East migration (job.cfg) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-s3.md Configuration for migrating from an S3 bucket in the US East region to OSS. Uses srcType=s3, scanThreadCount=10000, and audit after import with general mode. ```ini jobName=local_test srcType=s3 srcAccessKey=AKIA**** srcSecretKey=**** srcDomain=http://s3.us-east-1.amazonaws.com srcBucket=mybucket srcPrefix=docs/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou-internal.aliyuncs.com destBucket=mybucket destPrefix=docs/ jobType=import scanThreadCount=10000 multipartUploadThreshold=150m multipartUploadPartSize=50m isAuditAfterImport=true auditMode=general ``` -------------------------------- ### Example — conf/job.cfg (conf/bos template shape) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-bos.md Full configuration template for a Baidu BOS source with import job type. Required options include srcType=bos, srcAccessKey, srcSecretKey, srcDomain (e.g., http://bj.bcebos.com), srcBucket, and destination OSS credentials. Includes audit settings and multipart upload thresholds. ```ini jobName=local_test srcType=bos srcAccessKey=BOS_AK srcSecretKey=BOS_SK srcDomain=http://bj.bcebos.com srcBucket=mybucket srcPrefix=docs/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou-internal.aliyuncs.com destBucket=mybucket destPrefix=docs/ jobType=import isSkipExistFile=false taskObjectCountLimit=10000 taskObjectSizeLimit=1000000000 multipartUploadThreshold=150m multipartUploadPartSize=50m isAuditAfterImport=true auditMode=general ``` -------------------------------- ### Express Tunnel disabled fallback configuration Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/express-tunnel.md Example with isUseExpressTunnel=false, where the proxy options are unused. The job name is local_fallback. ```ini jobName=local_fallback srcType=local srcPrefix=/home/user/oss/data/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou-internal.aliyuncs.com destBucket=mybucket destPrefix=docs/ isUseExpressTunnel=false # expressTunnelProxyHost/Type/User/Dest/AuthToken unused jobType=import ``` -------------------------------- ### Follow-the-sun bucket copy with audit Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-oss.md Example configuration for copying objects from a source bucket to a destination bucket in a different region, with audit enabled after import. Uses public domains for cross-region migration. auditMode=general verifies size, lastModify, and header. ```ini jobName=oss_migrate_2024 srcType=oss srcAccessKey=LTAI**** srcSecretKey=**** srcDomain=http://oss-cn-shenzhen.aliyuncs.com srcBucket=bk-src srcPrefix=images/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou.aliyuncs.com destBucket=bk-dst destPrefix=images/ jobType=import isAuditAfterImport=true auditMode=general lastModify=0 ``` -------------------------------- ### Tencent COS v4 source domain (srcType=cos) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/endpoints.md For COS v4, fill in the region code where the bucket resides. Example shows East China (sh). COS v3 does not require srcDomain. ```ini # v4 example (East China) srcDomain=sh ``` -------------------------------- ### Express Tunnel proxy host Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/endpoints.md Proxy host for Express Tunnel. Must start with http or https. Destination region is set separately via expressTunnelProxyDest. ```ini expressTunnelProxyHost=http://100.100.100.100:80 ``` -------------------------------- ### Submit job with console.bat submit Source: https://github.com/aliyun/ossimport/blob/master/README.md Submit a new job using the configuration file 'conf/local_job.cfg' with the default job name 'local_test'. Run this command in Windows cmd.exe. Ensure the previous job is cleaned first because OssImport cannot start a new job with the same name. ```bash console.bat submit ``` -------------------------------- ### Example — public Azure blob sync Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-azure.md Configuration for syncing a public Azure Blob container to OSS. Uses srcDomain=core.windows.net and empty srcPrefix to sync all blobs. Sets isSkipExistFile=true to skip existing OSS objects with matching size and LastModifiedTime. ```ini jobName=azure_to_oss srcType=azure srcAccessKey=account01 srcSecretKey=ACCOUNT_KEY== srcDomain=core.windows.net srcBucket=mycontainer srcPrefix= destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou-internal.aliyuncs.com destBucket=bk-oss destPrefix=azure/ jobType=import isSkipExistFile=true ``` -------------------------------- ### conf/job.cfg template shape for OSS to OSS migration Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-oss.md Example configuration for migrating from one OSS bucket to another. Uses internal domain for same-region migration on ECS to avoid data-transfer fees. The srcPrefix and destPrefix define the object-key prefixes for source and destination. ```ini jobName=local_test srcType=oss srcAccessKey=LTAI**** srcSecretKey=**** srcDomain=http://oss-cn-hangzhou-internal.aliyuncs.com srcBucket=mybucket srcPrefix=src/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou-internal.aliyuncs.com destBucket=mybucket destPrefix=dest/ jobType=import isSkipExistFile=false multipartUploadThreshold=150m multipartUploadPartSize=50m ``` -------------------------------- ### Example — conf/job.cfg (conf/blob template shape) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/src-azure.md Configuration for importing from Azure Blob to OSS using the conf/blob/job.cfg template. Sets srcType=azure, uses storage account name and key, and specifies container name in srcBucket. Includes audit settings and multipart upload thresholds. ```ini jobName=local_test srcType=azure srcAccessKey=useraccount srcSecretKey=ACCOUNT_KEY== srcDomain=core.chinacloudapi.cn srcBucket=mycontainer srcPrefix=docs/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou-internal.aliyuncs.com destBucket=mybucket destPrefix=docs/ jobType=import multipartUploadThreshold=50m multipartUploadPartSize=150m isAuditAfterImport=true auditMode=general ``` -------------------------------- ### clean command (Linux/Mac and Windows) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/cli.md Clears the previous job that uses the same job name so a new job can be submitted. OssImport cannot start a new job with the same name as a previous job; run clean first if you do not want to resume the old job. ```bash bash console.sh clean # Linux/Mac ``` ```batch console.bat clean # Windows ``` -------------------------------- ### Clean previous job with console.bat clean Source: https://github.com/aliyun/ossimport/blob/master/README.md Clear the previous job with the same name before submitting a new job. Run this command in Windows cmd.exe. OssImport cannot start a new job with the same name as a previous job, so this step is required before submitting a new job. ```bash console.bat clean ``` -------------------------------- ### Source Settings Configuration (srcType, srcAccessKey, srcSecretKey, srcDomain, srcBucket, srcPrefix) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/job-config.md Defines the source for a migration job. For srcType=local, srcPrefix must be a full local directory path ending with '/'. For other types, srcPrefix is an object-key prefix. srcAccessKey and srcSecretKey are not needed for local and http sources. ```ini srcType=local srcAccessKey= srcSecretKey= srcDomain= srcBucket= srcPrefix=/home/admin/example/ ``` -------------------------------- ### version command Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/cli.md Prints the tool version. Added in version 2.2.4 ('Version-based management and support for the 'version' command to facilitate troubleshooting'). ```bash bash console.sh version ``` -------------------------------- ### stop command (Linux/Mac) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/cli.md Stops the service. For Windows, the documented stop procedure is closing the %JAVA_HOME%/bin/java.exe window. ```bash bash console.sh stop # Linux/Mac ``` -------------------------------- ### Qiniu source domain (srcType=qiniu) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/endpoints.md Domain of the corresponding bucket, obtained from the Qiniu console. ```ini srcDomain=http://mybucket.u.qiniudn.com ``` -------------------------------- ### Kingsoft KS3 source domain (srcType=ks3) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/endpoints.md Kingsoft KS3 region endpoints. Enumerated in template comments; no conf/ks3 template exists in this repository. ```ini srcDomain=http://kss.ksyun.com # or srcDomain=http://ks3-cn-beijing.ksyun.com # or srcDomain=http://ks3-us-west-1.ksyun.com ``` -------------------------------- ### Standalone directory structure Source: https://github.com/aliyun/ossimport/blob/master/README.md Shows the file layout of the standalone deployment of OssImport. The bin folder contains ossimport2.jar, conf holds local_job.cfg and sys.properties, and there are console and import scripts for Windows and Linux. ```text ossimport ├── bin │ └── ossimport2.jar # Includes Master、Worker、TaskTracker、Console model's code in one jar ├── conf │ ├── local_job.cfg # Job configuration file │ └── sys.properties # System run-time properties ├── console.bat # Windows bat file for advanced usage. It has different switches to support run steps one by one. ├── console.sh # Linux bash file for advanced usage. It has different switches to support run steps one by one. ├── import.bat # Windows all-in-one cmd. It run the whole job according to conf/local_job.cfg,including start, transfer, audit, and retry. ├── import.sh # Linux all-in-one cmd.It run the whole job according to conf/local_job.cfg,including start, transfer, audit, and retry. ├── logs # Logs └── README.md # Read me file. Strongly recommend to read before starting. ``` -------------------------------- ### Incremental Mode Configuration (isIncremental, incrementalModeInterval) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/job-config.md Configures incremental synchronization. Set isIncremental=true to re-scan the source every incrementalModeInterval seconds. The minimum configurable interval is 900 seconds; values below 3600 are not recommended due to wasted requests and overhead. ```ini isIncremental=false incrementalModeInterval=86400 ``` -------------------------------- ### Azure Blob source domain and bucket (srcType=azure) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/endpoints.md srcDomain is the EndpointSuffix from the storage connection string; srcBucket is the container name. srcAccessKey/srcSecretKey are the storage account name and key. ```ini srcDomain=core.chinacloudapi.cn srcBucket=mycontainer ``` -------------------------------- ### retry command Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/cli.md Retries failed tasks only; successful tasks are not re-run. Retry granularity was optimized from Task level to File level in version 2.2.2. ```bash bash console.sh retry ``` -------------------------------- ### submit command Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/cli.md Submits the job described by conf/local_job.cfg. The default job name is local_test. In standalone mode, the default job name is 'local_test', please do not change it. Submitting a job with a name that already exists produces an 'task already exists' notification. ```bash bash console.sh submit ``` -------------------------------- ### AWS S3 source domain (srcType=s3) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/endpoints.md AWS S3 region endpoint. Templates reference the AWS documentation for region endpoints. ```ini srcDomain=http://s3.us-east-1.amazonaws.com ``` -------------------------------- ### Upyun source domain (srcType=youpai) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/endpoints.md Upyun endpoints with line selection. v0 auto-selects best route, v1 telecom, v2 unicom/CNC, v3 mobile/CMCC. Additional options: isDownloadFromCdn and cdnDomain. ```ini srcDomain=http://v0.api.upyun.com # auto-selects the best route # or srcDomain=http://v1.api.upyun.com # telecom line # or srcDomain=http://v2.api.upyun.com # unicom/CNC line # or srcDomain=http://v3.api.upyun.com # mobile/CMCC line ``` -------------------------------- ### OSS source domain (srcType=oss) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/endpoints.md Source domain for OSS is the region domain from the console, without bucket prefix. Use -internal domain on ECS for faster, free transfers. ```ini srcDomain=http://oss-cn-hangzhou-internal.aliyuncs.com ``` -------------------------------- ### Baidu BOS source domain (srcType=bos) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/endpoints.md Baidu BOS region endpoints. Choose the appropriate region domain. ```ini srcDomain=http://bj.bcebos.com # or srcDomain=http://gz.bcebos.com ``` -------------------------------- ### Stop service with console.sh stop Source: https://github.com/aliyun/ossimport/blob/master/README.md Stop the OssImport service on Linux/Mac by running `bash console.sh stop` in the terminal. ```bash bash console.sh stop ``` -------------------------------- ### Express Tunnel job configuration (conf/et/job.cfg) Source: https://github.com/aliyun/ossimport/blob/master/_autodocs/api-reference/express-tunnel.md Template for a local import job using Express Tunnel. Requires isUseExpressTunnel=true and the proxy options. Note expressTunnelProxyType sample value 'data-migration' conflicts with the documented enumeration. ```ini jobName=local_test_md srcType=local srcPrefix=/home/user/oss/data/ destAccessKey=LTAI**** destSecretKey=**** destDomain=http://oss-cn-hangzhou-internal.aliyuncs.com destBucket=mybucket destPrefix=docs/ isUseExpressTunnel=true expressTunnelProxyHost=http://100.100.100.100:80 expressTunnelProxyType=data-migration expressTunnelProxyUser=huijue-us expressTunnelProxyDest=cn-shanghai expressTunnelAuthToken=TOKEN jobType=import taskObjectCountLimit=5 multipartUploadThreshold=150m multipartUploadPartSize=50m uploadThreadNumPerLargeFile=3 isAuditAfterImport=true auditMode=simple ``` -------------------------------- ### Stop service on Windows by closing java.exe window Source: https://github.com/aliyun/ossimport/blob/master/README.md Stop the OssImport service on Windows by closing the window `%JAVA_HOME%/bin/java.exe`. This is the recommended way to stop the service in step-by-step mode. ```bash %JAVA_HOME%/bin/java.exe ``` -------------------------------- ### Retry failed tasks with console.bat retry Source: https://github.com/aliyun/ossimport/blob/master/README.md Retry failed tasks in Windows cmd.exe. Successful tasks will not re-run during the retry. Tasks could fail due to network or other reasons. ```bash console.bat retry ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.