Google Drive large migration best practices

This article is for organizations looking to migrate hundreds of thousands of files from a third-party system into Google Drive. Before a large migration, review these best practices. These guidelines  establish a baseline for approaching a migration.

Each folder in a user’s My Drive or shared drive has a limit of 500,000 items in total. Learn more about What counts towards storage.

Avoid filling folders and shared drives during a migration so that they can grow organically as your users create new content. Learn more about Folder limits in Drive.

Before you begin

For most large migrations:

File creation and ownership

Important: To reduce the possibility of errors and improve performance both during and after migration, do not let a user create or own more than 500,000 files, folders, or shortcuts.

To expedite migration, instead use service accounts to share file creation across multiple accounts. Service accounts are machine accounts that perform non-person business functions throughout Google Workspace.

Folder structure

If folder hierarchies grow large, updating them can take a long time. To facilitate the updating of permissions and items, avoid putting too many items in a single folder or nesting hierarchies deeply. You can't nest more than 100 levels of folders in My Drive or in a shared drive. See Shared drive limits.

Use shared drives

Files are created by a user and then can be added to a shared drive, at which point the shared drive becomes the owner. Put items that don’t need to belong to one person in a shared drive. You can also add specific groups as members of the shared drive.

If members leave your organization, the files in shared drives stay in place. Your team can keep sharing information, working anywhere, from any device. For more information, see What are shared drives?

Sharing and permissions in Google Drive

Inheritance is a critical concept for understanding file sharing in Drive and for successful migration. Files inherit the sharing controls of folders they’re in. So, you should usually apply permissions to folders before adding files. 

Upload limits, quotas, and exemptions

Other system limits protect your data and ensure performance. For details, see Storage and upload limits for Google Workspace and Drive API usage limits.

To avoid exceeding the limits and quotas, use the following best practices and Monitor API quotas. If you think you might exceed these quotas, request an increase.

  • Batch multiple calls into a single request using the Google Drive API, especially when changing file metadata for many items that belong to the same user. See Google Drive API.
  • Do not allow a service account to create more than 500,000 files on behalf of a given user account.
  • The default quota limits for Drive API are 20,000 calls every 100 seconds, both per user and per project. This limit applies to the sum of read and write calls.
  • The rate of Drive API write requests is limited—avoid exceeding 3 requests per second of sustained write or insert requests, per account. Note: This rate limit can’t be increased.
  • If you encounter errors during the migration, follow steps to resolve them. See Retry failed requests to resolve errors.

Use service accounts to impersonate many users & upload files

Important: Only use service accounts for delegation where the identity is that of an individual user. Using the service account as a common owner to create many shared documents can create performance problems. Do not use service accounts to acquire additional storage quota or act as members of a domain.

Service accounts play a critical role in migrations because they automate content creation on behalf of users, applying permissions and placing items appropriately in your folder structure. Using service accounts can help you complete your migration faster by spreading the migration load across many users.

Use them to:

  • Create content on behalf of a user by having them impersonate the user.
  • Spread out upload and insertion requests across many user accounts. To speed up uploading content to Google Drive and avoid quota issues, use a service account with domain-wide delegation to distribute write activity across many different impersonated users.

Learn how to: 

Note: Instead of assigning ownership of files and folders to the service account performing the upload, place the content in a shared drive or assign ownership to a user account.

Uploading videos to Drive

Normally, video files uploaded to Drive are processed to be playable directly in Drive's web or mobile apps. However, there are limits to video processing in place to protect our systems that may be triggered by migrations. If you are migrating a large amount of video files and need them playable directly in Drive, contact your migration partner before proceeding. Learn how to Store and play video in Google Drive and Google Drive upload limits.

Information strategy

Before the migration, design a system to organize items in your body of content. For example, create file metadata and structure your organization’s content by taking these steps:

  • Apply custom file properties. Learn more
  • Restrict authoritative versions of files with locking. Learn more
  • Apply Google Vault retention policies to your content. Learn more
  • Specify your organization’s sharing policies. Learn more

Still need help?

Contact your migration partner. If you’re not working with a partner, contact Google Workspace support.

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
4032344093041536864
true
Search Help Center
true
true
true
true
true
73010
false
false