Migrate file S3 AWS to S3 NIPA

Migrating Data from Amazon S3 to NIPA Cloud Space S3 Buckets Using s3fs and rsync

For customers who wish to move data from Amazon S3 to a NIPA Cloud Space S3 Bucket, the process can be accomplished using s3fs and rsync by following the steps below.

Restriction

  1. You must have S3 buckets, Access IDs, and Secret Keys ready for both your AWS and NIPA Cloud Space accounts. (For help with AWS credentials, see the official AWS documentationarrow-up-right).

  2. A Compute Instance for mounting s3fs. (This guide uses Ubuntu 22.04 as an example).

Instruction

The process for syncing files from an AWS S3 bucket to a NIPA Cloud Space Object Storage bucket is as follows:

1. Create a Bucket on NIPA Cloud Space

Create your S3 bucket on the NIPA Cloud Space platform by following the guides below:

2. Secure Shell

Once your NIPA Cloud Space S3 bucket, Access ID, and Secret Key are ready, SSH into your prepared Compute Instance.

3. Install s3fs Dependencies

Install the required dependencies for using s3fs.

4. Create Access Key File

Create a file to store your Access ID and Secret Key credentials.

5. Create Paths

Create the directory paths that will serve as mount points for your AWS S3 bucket and your NIPA Cloud Space S3 bucket.

6. Mount the AWS S3 Bucket

Mount the AWS S3 bucket to the /mnt/s3aws directory. The options are detailed below:

  • {bucketname} = The name of your bucket (e.g., my-aws-bucket).

  • {/mountpoint} = The path where you want to mount the files (e.g., /mnt/s3aws).

7. Mount the NCS Bucket

Mount the NIPA Cloud Space S3 bucket to the /mnt/s3nipacloud directory.

  • {bucketname} = The name of your bucket (e.g., my-nipa-bucket).

  • {/mountpoint} = The path where you want to mount the files (e.g., /mnt/s3nipacloud).

8. Check Mounting

Verify that the S3 buckets were mounted successfully by running the appropriate command.

9. Syncing Buckets

Sync the files from the AWS S3 bucket mount point to the NIPA Cloud Space S3 bucket mount point.

10. Checking

Once the sync is complete, verify that all files have been transferred to the NIPA Cloud Space S3 bucket by running the appropriate command.

Last updated