You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

kevinxu212's avatar
kevinxu212
New member | Level 2
4 years ago

How to Data Transfer Between Accounts in Bulk

I'm trying to transfer large amounts of data (files/folders) between accounts before an account is deleted. So say user A is to be deleted soon, I want to move user A's files to a format where user B can access them.

I'm looking at two approaches, but have questions in both?

  • using copy_reference/get and copy_reference/save to manually transfer every file and folder
    • The issue is request batching. I don't want to make 1000s of calls if there are 1000s of files/folders I need to change the reference for.
  • Making a shared folder from which user B will have access to user A's files. Moving all of user A's files to the shared folder.
    • I'm not sure how to move files in bulk to a shared folder or how to maintain the right folder / file directory structure.

Are there any approaches I might be missing? Any data migration apis? If not, what would be the best approach and how can I address some of these questions?

  • The Dropbox API doesn't offer a way to process copy references in batch, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

     

    That being the case, using shared folders may be a better option. For instance, you can share folders using /2/sharing/share_folder and /2/sharing/add_folder_member, or you can move entire folders and their contents, into a shared folder for instance, using /2/files/move_v2. You can also move items, files or folders, in bulk using /2/files/move_batch_v2.

     

    If the account is a member of a Business team though, there is an option to transfer the member's files when deleting the account. You can find information on that in the help center here.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    The Dropbox API doesn't offer a way to process copy references in batch, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

     

    That being the case, using shared folders may be a better option. For instance, you can share folders using /2/sharing/share_folder and /2/sharing/add_folder_member, or you can move entire folders and their contents, into a shared folder for instance, using /2/files/move_v2. You can also move items, files or folders, in bulk using /2/files/move_batch_v2.

     

    If the account is a member of a Business team though, there is an option to transfer the member's files when deleting the account. You can find information on that in the help center here.

    • kevinxu212's avatar
      kevinxu212
      New member | Level 2

      The last bit about "if the account is a member of a Business team though" is most helpful. Thank you!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!