Skip to main content

How to transfer Dropbox files to OneDrive

Jeff Mitchell

Jeff Mitchell

Founder, Simple Asset Manager

Most of us nowadays have devices with small internal storage, like me - and have devices with small hard drives but cloud storage with massive storage - it can be difficult to sync Dropbox, OneDrive, Google Drive, etc.

  • made even worse if you dual boot Linux and Windows.

I found this trick while having to migrate out of Dropbox (2 terabytes) to OneDrive with 5 gbs of free storage to work with on my laptop.

Step 1) Install OneDrive for Linux, located here: https://github.com/abraunegg/onedrive/ (Microsoft does not have an official Linux OneDrive application, but this is the one they'll direct you to as well)

The default OneDrive location is ~/home/your_user_name/OneDrive
Create a folder inside called to_transfer, from the console this would be:
mkdir ~/home/your_user_name/OneDrive/to_transfer

Step 2) Since you do not want your OneDrive to sync all remote files to your computer, open the console (Crtl + Alt + T) and create the following configuration file:

touch ~/.config/onedrive/sync_list
nano ~/.config/onedrive/sync_list
# sync_list supports comments
# include the below folder
to_transfer/
# exclude any temporary files
!to_transfer/*.tmp

Step 3) Download files you need from Dropbox or the drive you're migrating to OneDrive (the maximum zip file Dropbox will make is 20 gb unfortunately).

Step 4) Extract / Unzip the files into the to_transfer folder you created.

Step 5) Run the following from the console:

onedrive --synchronize --upload-only --no-remote-delete

Step 6) Once the upload completes, repeat as necessary until you've transferred all of your files to OneDrive.