Example: Copy/Move and Download File Cloud Storage Actions

The Copy/Move and Download file to cloud storage Actions are used when you want to copy, move, or download files to/from Amazon S3 or Azure Blob storage. The Cloud Connector Configuration page in the Action wizard allows you so specify the cloud provider storage and other details, based on whether you specify Amazon S3 or Azure Blob storage.

Be aware of the following AWS restrictions when creating a bucket name:

  • Bucket names can contain lowercase letters, numbers, and hyphens.

  • Each label must start and end with a lowercase letter or a number.

  • A bucket name cannot start or end with a period.

  • Bucket names must be at least 3 and no more than 63 characters long.

  • Bucket names must not be formatted as an IP address (for example, 192.168.5.4).

  • As a best practice, always use DNS-compliant bucket names regardless of the region in which you create the bucket. For example, MyAWSBucket is a valid bucket name, even though it contains uppercase letters. If you try to access this bucket by using a virtual-hosted–style request (http://MyAWSBucket.s3.amazonaws.com/yourobject), the URL resolves to the bucket myawsbucket and not the bucket MyAWSBucket. In response, Amazon S3 will return a "bucket not found" error.

  • For more information regarding buckets restrictions, limitations, and naming, refer to http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html.

  • Cloud transfers are performed in multi-part sequential files. You can configure an advanced property revert to legacy behavior (chunked transfers in parallel).

  • Refer to https://kb.globalscape.com/KnowledgebaseArticle11437.aspx for details of the advanced property.

To configure Copy/Move and Download file to cloud storage Event Rules

  1. After specifying an event in the Rule Builder, in the Actions list, double-click Copy/Move (push) to or Download file from cloud storage.

  2. In the Action that was added to the Event Rule, click select. The Cloud Connection Configuration page appears.

  3. Specify the connection details. You could also configure a cloud provider in a Connection profile to avoid having to configure connection details for every Event Rule.

  4. Click Advanced to specify Cloud Specific Transfer Options.

    • Can I use context variables?

    • Context variables are supported for passphrase and Metadata.

    • What is the difference between Amazon S3 vs Amazon S3 (compatible)?

    • Amazon S3 (compatible) allows you to manually specify some of the fields (Endpoint URL, Region, host format). For example, for using with S3 compatible storage such as Google drive and others.

    • Are the values in metadata passed as custom headers in the request to S3?

    • Metadata are passed as a custom header, with a name that starts with "x-amz-meta-". For example:

      x-amz-meta-metadatakey: MetadataValue

    (For metadata details, refer to https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingMetadata.html.)

  5. Click Next. In Source File Path, specify the source file. You can specify filenames, paths, or context variables.

  6. Click Next. Specify the Destination for folder and filename (optional). Context variables can be used here also. Also in the Destination page of the wizard, you can specify what to do with matching filenames (Overwrite, Skip, or Numerate) and, can specify to rename the transferred file.

  7. Click Finish.

Refer to the following topics for information about creating EFT Event Rules: