In this tutorial we would be learning will learn the movement of file, files and directory, within Amazon S3 to designated file system and vice-versa.
Panel |
---|
Amazon S3 To Local File System To Amazon S3 |
- Login to DBSync with valid credentials credentials.
- Create a project Project with name of your choice.
- Create connectors Connectors - preferably of type Java and DB.Database
- The Java connector Connector should have valid class nameName, user name and password , Username and Password - notably the class name is "awsS3Adapter" and the username and password are of Amazon S3 Storage Storage.
- Configure the DB Database Connector with any DB which Database that is supported by DBSync, please . Please refer to DBSync DB connector documentation for more information.
- Create a process with meaningful name - like S3ToLocal which . Something that will be easy for other users to understand.
- Create a workflow with a valid name Name, Trigger and rules Rules as explained in latter sections sections.
Trigger Setup
- Select the data-source as DB Database.
- Choose the object corresponding to the Data-source source.
Rules Setup
- Add a rule with name of user choice. Then, select the java connector Java Connector and operation Operation as insertInsert.
- Set the target Object to upload directory which that will write the total chosen directory with its files from designated file system to Amazon file system.
- Now Next the user has to should do the mapping as per his choice, the below are the sample which will help him /her choice. Following samples will help a user understand how this need can be done .
Mappings
Target Field | Description |
---|
Validate Row | Has to be |
true | Amazon Bucket to which it has to be written. |
File pattern | The name of the |
directory directory. |
File Reference | The source path from where the directory should be read. For Eg: "C:/Users/Avankia111/Downloads/TestDirectory" in case of local machine this is the format. |
Region | The Region |
where Amazon of the user's Amazon is hosted. |
Image RemovedImage Added
...
We set Connectors, Trigger and Rules
...
appropriately
...
. Now it
...
is time to Run sync and
...
confirm that all the files from the designated directory have been copied to the destination i.e. Amazon s3
...
.
Hit the Click 'Run Now' button located at the top right corner of the page - as shown in the above screen. If sync is successful executed, it shows up in the console , in case of errors also same will . However, if there are errors, that will also be displayed in the consoleConsole.
After the successful completion of sync, go to the Amazon S3 storage to the given file path to check . Make sure that the files are copied along with correct directory name, file names Directory Name, File Names and data in the files .