Copy Dropbox to Google Drive With rclone (Without Deleting Anything by Accident)
If you need to move a Dropbox account, or one big folder, into Google Drive, rclone is the most capable free tool for the job. It talks to both APIs directly, so you are not downloading everything through a desktop sync client and uploading it again.
It is also a tool where one wrong verb deletes files. This is the setup I use, with the flags that matter and the ones that hurt.
1. Create the two remotes
rclone config
Make one remote of type dropbox (I call it dropbox) and one of type drive (I call it gdrive). Both open a browser for OAuth.
Two choices in the Drive setup are worth slowing down for:
- Use your own client ID.
rcloneships with a shared Google client ID that every user without their own is using, and it gets rate limited. Creating your own in Google Cloud Console takes ten minutes, and the rclone docs walk through it. For a migration of any size it is worth it. - Pick the scope on purpose.
drivegives rclone your whole Drive.drive.filelimits it to files rclone itself creates, which is all a one-way copy into Drive needs.
Check both remotes before going further:
rclone lsd dropbox:
rclone lsd gdrive:
2. Use copy. Not sync, not move
This is the important part.
| Command | What it does to the destination | What it does to the source |
|---|---|---|
rclone copy |
Adds and updates files | Nothing |
rclone sync |
Makes it identical to the source, deleting anything extra | Nothing |
rclone move |
Adds files | Deletes each file after it is copied |
sync into a Drive folder that already has other files in it will remove them. move empties your Dropbox as it goes, which is a bad surprise if the copy then fails halfway.
For a migration, copy is the right default: nothing is ever deleted, and you clean up Dropbox yourself once you have checked the result.
Always do a dry run first:
rclone copy "dropbox:Client Work" "gdrive:From Dropbox/Client Work" --dry-run
Then the real thing:
rclone copy "dropbox:Client Work" "gdrive:From Dropbox/Client Work" --progress
copy is also safe to re-run. If it stops, run the same command again and it skips files that are already there with the same size and modification time.
3. Flags that help with big transfers
rclone copy "dropbox:Client Work" "gdrive:From Dropbox/Client Work" \
--progress \
--transfers 4 \
--drive-chunk-size 64M \
--drive-stop-on-upload-limit
--transfersis how many files go at once. The default of 4 is sensible. Raising it a lot mostly earns you rate-limit errors.--drive-chunk-sizemakes uploads to Drive faster for large files, at the cost of memory: each transfer buffers one chunk, so 4 transfers at 64M is roughly 256 MB of RAM.--drive-stop-on-upload-limitmatters because Google Drive accepts about 750 GB of uploads per user per day. Without this flag rclone keeps retrying into the quota. With it, rclone stops cleanly, and tomorrow's run picks up where it left off.
4. Checking the copy: hashes don't line up
The natural next step is rclone check, and it has a catch with this pair:
rclone check "dropbox:Client Work" "gdrive:From Dropbox/Client Work"
Dropbox uses its own content hash and Drive uses MD5, so there is no hash the two remotes share. rclone tells you so and falls back to comparing sizes only. That catches missing and truncated files, but not corrupted ones.
If you need a byte-for-byte check, add --download, which reads every file from both sides and compares the contents:
rclone check "dropbox:Client Work" "gdrive:From Dropbox/Client Work" --download
That doubles the traffic, so I keep it for folders where it really matters.
5. Where to run it
rclone moves the data through whatever machine it runs on. On a laptop that is your home connection, twice: down from Dropbox and up to Drive. For anything past a few tens of gigabytes, a small VPS is faster and you can close the laptop.
One thing to check first: the big clouds charge for outbound traffic, and every byte uploaded to Drive is outbound from the VM. Providers with a generous included transfer allowance are a better fit for this than per-GB billing.
When rclone is more than you need
rclone is the right tool if you are comfortable in a terminal, or moving a whole account with scripts and logs. If you just want one folder from Dropbox in your Google Drive, a hosted cloud-to-cloud transfer does the same server-side copy without the setup.
I build one, WetoDrive, and the page for it is Dropbox to Google Drive without downloading. It works with personal Gmail accounts, which Google's own Dropbox import does not.
If you are moving everything, I also wrote up a checklist for migrating a whole Dropbox to Google Drive: what comes across, what doesn't (sharing links, version history), and what to check before you delete anything.
Comments
No comments yet. Start the discussion.