Migrate Data From Amazon S3 To AIOZ Storage
Prerequisites
Before you begin the migration process, ensure that you have the following:
- rclone: Make sure you have rclone installed on your system. If not, you can download it from the official website: rclone.org (opens in a new tab)
- AIOZ Storage Access Grants: You will need the access grants for your AIOZ Storage account. This typically includes an access key and a secret key. Refer to this page manage-access-grants.md for how to get access grants.
Amazon S3
Prerequisites
- Amazon S3 Credentials: Ensure you have your Amazon S3 account credentials handy. Refer to this page (opens in a new tab) for how to get the credentials.
Step-by-Step guide
Follow these steps to migrate your data from Amazon S3 to AIOZ Storage:
Step 1: Locate rclone config path
-
Open a terminal window.
-
Run the following command:
rclone config file
-
It will output some text like:
Configuration file is stored at: /home/user/.config/rclone/rclone.conf
Step 2: Configure Amazon S3 and AIOZ Storage remotes in rclone
-
Open the rclone config file from the above path.
-
Write config for Amazon S3:
[s3] type = s3 provider = AWS access_key_id = <your-s3-access-key-id> secret_access_key = <your-s3-secret-access-key-id> region = <your-s3-region> endpoint = <your-s3-endpoint> acl = private server_side_encryption = storage_class =
-
Write config for AIOZ Storage:
[aioz-storage] type = s3 provider = Other access_key_id = <your-aioz-storage-access-key-id> secret_access_key = <your-aioz-storage-secret-access-key> endpoint = <your-aioz-storage-endpoint>
-
Save the config file.
Step 3: Transfer data
-
Use the following command to sync data from your Amazon S3 bucket to your AIOZ Storage bucket:
rclone sync --progress s3:your-bucket aioz-storage:your-bucket
If you counter
corrupted on transfer: sizes differ
error, you can add a flag --ignore-size
. -
If you want to ensure that the data on AIOZ Storage is identical to Amazon S3, you can perform a checksum check using the
--check
flag:rclone check --progress s3:your-bucket aioz-storage:your-bucket
Step 4: Verify and finalize
- After the transfer is complete, verify that the data has been migrated correctly by comparing files and their content between the two storage locations.
- Update any applications, scripts, or processes that reference the data to point to the new AIOZ Storage location.
- Once you're confident that the migration was successful, you can remove the data from Amazon S3 if it's no longer needed.
Congratulations! You have successfully migrated your data from Amazon S3 to AIOZ Storage using rclone.