
Object Storage is a critical storage solution that lets you store and continuously access data, which is a critical component for business and developers. Buckets store unstructured data, such as images, videos, logs, or backups, offering a scalable and efficient way to handle large volumes of data. Migrating data from Google Cloud Storage buckets to Vultr Object Storage allows you to expand your storage with multiple locations and performance benefits to match your business or project needs.
Follow this guide to migrate your data from your Google Cloud Storage bucket to a Vultr Object Storage bucket. You will use Rclone or gsutil to migrate existing buckets to your destination Vultr Object Storage subscription.
Before you begin, you need to:
Have access to an Ubuntu instanceas a non-root sudo user to use as the migration workstation.
Have an existing Google Cloud Storage bucket with your source data files.
Provision a Vultr Object Storage subscription and create a bucket.
Open your Vultr Object Storage subscription's management page and copy the hostname, secret key, and access key details.
Follow the steps below to verify your source Google Cloud Storage bucket information to migrate to Vultr Object Storage.
Log in to Google Cloud Console.
Select your target project that contains your Google Cloud Storage bucket.
Copy your project number to the clipboard.
Click Cloud Storage.
Click Buckets on the left navigation menu.
Note of your target bucket's Location type, Location, and Default storage class information to configure on your workstation.
You can migrate data from Google Cloud Storage buckets to Vultr Object Storage using two methods, Rclone and gsutil.
Choose a migration method to install on your migration workstation and use it to transfer data to your Vultr Object Storage subscription.
Follow the steps below to install and configure Rclone or gsutil, depending on your selected migration method.
Update the APT package index.
Download the latest Rclone installation script.
Run the installation script.
Verify the installed Rclone version.
Your output should be similar to the one below.
Generate a new Rclone configuration.
Copy the generated configuration file path in your output similar to the one below.
Open the Rclone configuration file.
Add the following configurations to the rclone.conf file. Replace YOUR_ACCESS_KEY, YOUR_SECRET_ACCESS_KEY, and YOUR_ENDPOINT_URL with your actual Vultr Object Storage details.
Save and exit the file.
The above configuration creates a new connection to your Vultr Object Storage subscription using the specified connection credentials.
List all buckets in your Vultr Object Storage subscription to test the connection.
Your output should be similar to the one below.
Open the interactive Rclone configuration.
Output:
Enter n to create a new remote configuration.
Specify a new name for tthe remote connection. For example, gcs.
Find Google Cloud Storage (this is not Google Drive) from the list of cloud storage providers and enter its number to configure it.
At the prompt, enter the corresponding number (for instance, 19).
Press Enter to keep the OAuth client ID empty.
Press Enter to keep the OAuth client secret empty.
Enter your GCP project number.
Press Enter to keep the user project empty.
Press Enter to keep the service account path empty.
Press Enter to restrict anonymous bucket access.
Press Enter to keep the access control list for new objects empty.
Press Enter to keep the access control list for new buckets empty.
Press Enter to continue with the bucket policy only set to false.
Find your Google Cloud Storage bucket location from the list, enter the corresponding location number, and press Enter.
Find your storage class from the list and enter the corresponding number. If your storage class is Standard, select any of the following options.
Regional storage class: For buckets stored in a single region. Multi-regional storage class: For buckets distributed across multiple regions.Enter 1 to continue and manually enter your credentials.
Enter n to proceed without editing the advanced configuration.
Enter n to start the Google Cloud account authentication.
Your output should be similar to the one below.
Copy the generated URL from the second line of the command output.
Open a new terminal on your local workstation.
Set up port forwarding to your remote migration workstation. Replace 192.0.2.1 with the IP address of your migration server and linuxuser with your non-root username.
The above command opens a connection to your server and forwards port 53682 to your local workstation address. Port forwarding routes all requests to localhost:53682 on your local machine to port 53682 on the remote server's.
Enter your user's SSH password when prompted.
Paste the Rclone URL you copied earlier in a web browser such a Chrome to log in to your Google account.
Sign in with your Google Cloud account.
Grant Rclone access to your account.
Verify that a success message displays in your web browser to complete the authentication.
Close the web page.
Press Ctrl + C in your terminal to exit the port forwarding session.
Navigate to your Rclone configuration terminal.
Verify that Rclone successfully adds your login credentials to the configuration.
Enter y and press Enter to save the configuration.
Enter q to quit the configuration.
List all available Google Cloud Storage buckets to test your configuration.
Your output should be similar to the one below when successful.
List all Rclone remotes and verify that your configuration is active.
Output:
Follow the steps below to migrate your Google Cloud Storage buckets to Vultr Object Storage using your desired migration method.
Transfer all objects in your GCS bucket to your Vultr Object Storage subscription.
Monitor the migration process and wait for the transfer to complete, depending on your bucket size.
Transfer objects from your GCS bucket to a specific Vultr Object Storage bucket. Replace example_source_bucket with your GCS bucket and example_destination_bucket with your destination bucket name.
Your output should be similar to the one below when successful.
If the file transfer command is interrupted or unexpectedly stops due to an error, run the rclone command again to start the transfer again.
Follow the steps below to test your Vultr Object Storage subscription and verify the migrated data integrity, depending on your migration method.
Check for file differences between the source GCS bucket and the destination Vultr Object Storage bucket.
If the above command returns a 0 differences found prompt, the buckets match, and your migration is successful.
If you receive file differences similar to the ones below, run the rclone sync command to migrate the missing files.
You have migrated data from your Google Cloud Storage bucket to a Vultr Object Storage subscription. You can use rclone or gsutil to migrate all existing data, verify the data integrity, and cut over your applications to Vultr Object Storage. Visit the Vultr Object Storage documentation for more bucket configuration options.
0 Comments
Be the first to comment and share your perspective with the community.