MithiDocs

Copy files from one S3 bucket to another

Overview

Using the  S32S3-Copy request type, users of LegacyFlo can copy one or more files from a source S3 bucket to a destination S3 bucket.

Buckets can be in different accounts and in any region.

If source files are not present or cannot be accessed, then these will be skipped. The list of such files will be available in the logs which will be available after the completion of the request. 

The S32S3-Copy request can also be used to copy to and from the Vaultastic Open Store.

Preparation

Before submitting an S32S3-Copy request, both the source and the destination S3 buckets should be registered with LegacyFlo as mentioned here.

Operation Type

FIELD NAMEDescription
Copy
Choose this option to copy all the files selected at the source which were created or modified on or after the date specified in the Since field.
If the files are already present in the destination, they will be overridden.
Sync

Choose this option to sync all the files that have been created or modified on or after the date specified in the Since field. 

Files already present in the destination, which have not be been modified since the specified date will be skipped. 

Note: If a file synced earlier is deleted from the destination, then the sync operation will skip it

Source information (S3 bucket)


FIELD NAMEDESCRIPTION
S3 Bucket Name

This field is compulsory.

The S3 bucket that has the source file to be copied. Select the S3 bucket name from the drop-down list.

The list will show 

  • S3 buckets in your AWS account registered with LegacyFlo
  • the bucket hosting your Vaultastic Open Store(mithi-ind1-vaultastic-legacystore).
S3 Folder path

This is an optional field.

If the source files are on the Vaultastic Open Store, then this parameter should have the name of your Vaultastic domain. Example: baya-com.vaultastic.com

If the file is on your own bucket, give the root folder which contains the files. Leave this value empty if the source file is on the root of the S3 bucket or the folder name is specified in the CSV file.

NOTE: S3 folder path should not start or end with a "/"


CSV fileThis is an optional field.

This file can be used to give a fixed list of files to be copied or synced. Each row is a file name.

The file name will be appended to the values of S3 Bucket Name and the S3 Folder Path.
Since date

This is an optional field. 

Only files which have been created or modified on or after the specified date will be considered. 

Select the CSV file with the list of files to be copied. The file should have a single column. The first row is the header, with the keyword FileName. Subsequent rows will have the names of the files on the source bucket in the specified path. Each CSV file should not have more than 100 filenames.

Note: If this field is specified along with a list of files, then only the files which have been created or modified will be considered, the others will not be synced or copied to the destination.


Destination information (S3 Bucket)

FIELD NAMEDESCRIPTION
S3 bucket name

This field is compulsory.

The S3 bucket for the destination files. Select the S3 bucket name from the drop-down list.

The list will show 

  • S3 buckets in your AWS account registered with LegacyFlo
  • The bucket hosting you Vaultastic Open Store(mithi-ind1-vaultastic-legacystore).
S3 folder path

This is an optional field.

If the files have to be copied on the Vaultastic Open Store, then this parameter MUST have the name of your Vaultastic domain. Example: baya-com.vaultastic.com

If the files have to be copied on your own bucket, give the folder which will contain the file. Leave this value empty if the destination file has to be created on the root of the S3 bucket.

NOTE: S3 folder path should not start or end with a "/"