How to Transfer Google Drive to Backblaze B2 Storage
In this article
You cannot directly sync Google Drive to Backblaze because they use different storage architectures: Google Drive is a file-syncing service, while Backblaze (specifically the B2 Cloud Storage) is object storage. To move your data, you must download files from Google Drive and upload them to Backblaze B2. This guide uses rclone, a free command-line tool that automates this transfer securely and efficiently.
What You'll Need
- A computer with internet access (Windows, Mac, or Linux).
- Your Google account credentials.
- A Backblaze account with B2 Cloud Storage enabled.
- The rclone software installed on your computer.
Step-by-Step
- Create a Backblaze Application Key: Log in to your Backblaze account and navigate to the "Application Keys" section. Create a new key specifically for this transfer. Copy the generated Key ID and Application Key immediately, as you will only see the Application Key once. Store these securely.
- Install rclone: Download rclone from the official website (rclone.org). Follow the installation instructions for your operating system. Verify the installation by opening your terminal or command prompt and typing
rclone version. - Configure Google Drive Remote: In your terminal, run
rclone config. Selectnto create a new remote. Name it (e.g., "gdrive"). Choose the type by selectingdrivefrom the list. Follow the prompts to authenticate with your Google account. Your browser will open; grant permission and copy the verification code back into the terminal. Pressyto confirm. - Configure Backblaze B2 Remote: Run
rclone configagain. Create another new remote named "b2". Select typeb2. When prompted for the Account (Key ID), paste the Key ID from Step 1. When prompted for the Secret (Application Key), paste the Application Key. Leave other settings at their defaults unless you have specific bucket requirements. - Test the Connections: Before transferring large amounts of data, verify both connections work. Run
rclone ls gdrive:to list your Google Drive files. Then runrclone ls b2:to list your Backblaze buckets. If both commands return results without errors, your configuration is correct. - Perform the Transfer: Use the sync command to move files. The most reliable command is:
rclone sync gdrive: /path/to/backup b2:your-bucket-name --progress. Replaceyour-bucket-namewith your actual Backblaze bucket name. The--progressflag shows real-time status. Note:syncmakes the destination identical to the source. It deletes files in the destination that are not in the source. If you want to copy without deleting, usecopyinstead. - Verify the Transfer: After the process completes, check a few random files in your Backblaze bucket via the web interface or by downloading them locally to ensure they match the originals.
Common Mistakes
One frequent error is using the wrong sync direction. Always double-check the source and destination arguments in the rclone command. Swapping them can result in deleting all files from your Google Drive if you accidentally point the sync command incorrectly. Another mistake is losing the Backblaze Application Key. Since you cannot retrieve it later, always save it in a password manager or secure text file before proceeding.
Tips
If you are transferring massive amounts of data, consider adding the --transfers=4 flag to limit concurrent uploads, which can prevent overwhelming your network connection. For very large folders, running the transfer in a background session (using tools like tmux or screen) ensures the process continues even if your terminal disconnects. Also, remember that Backblaze B2 charges for egress (download) traffic, so plan your retrieval strategy accordingly.
Troubleshooting
If rclone fails to authenticate with Google, ensure your browser allows pop-ups during the OAuth flow. For Backblaze connection errors, verify your Key ID and Application Key have no extra spaces or line breaks. If the transfer stops midway, simply re-run the same sync command; rclone is designed to resume and skip already transferred files. If you encounter permission denied errors, check that your Backblaze bucket policy allows public read access if you intend to view files online, though private access is recommended for security.
Frequently Asked Questions
Is this transfer free?
The rclone software is free. Google Drive does not charge for downloads. Backblaze B2 offers a generous free tier for storage, but you may incur small fees for API operations or data retrieval depending on your usage volume.
Can I sync two-way between Google and Backblaze?
No. Object storage like Backblaze B2 is not designed for two-way syncing with consumer cloud drives. Use rclone's sync or copy commands for one-way transfers only.
Does rclone support encryption?
Yes. You can configure rclone to encrypt files before uploading to Backblaze by setting up a crypt remote, ensuring your data remains private even in the cloud.
What happens if my internet cuts out during transfer?
Rclone handles interruptions gracefully. When you reconnect and rerun the command, it will resume transferring from where it left off, verifying checksums to ensure file integrity.
Can I use a GUI instead of command line?
While rclone is command-line based, there are third-party graphical interfaces like Rclone Browser or Cyberduck that can manage rclone configurations and perform transfers visually.