Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Shared Drive functionality for Google Drive backups #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

whatthecloud
Copy link

The current Google Drive backup code does not allow for a folder that is stored on a Workspace Shared Drive.

Currently, if a Shared Drive Folder ID is specified, the following errors are thrown.

Error creating folder: <HttpError 404 when requesting https://www.googleapis.com/drive/v3/files?fields=id&alt=json returned "File not found: <Folder ID>.". Details: "[{'message': 'File not found: <Folder ID>.', 'domain': 'global', 'reason': 'notFound', 'location': 'fileId', 'locationType': 'parameter'}]">
Error uploading to Google Drive: <HttpError 404 when requesting https://www.googleapis.com/drive/v3/files?fields=id&alt=json returned "File not found: <Folder ID>.". Details: "[{'message': 'File not found: <Folder ID>.', 'domain': 'global', 'reason': 'notFound', 'location': 'fileId', 'locationType': 'parameter'}]">

This can be enabled through the existing Google API Client library by adding the includeItemsFromAllDrives=True and supportsAllDrives=True parameters to the files().list method and adding the supportsAllDrives=True parameter to the files().create methods.

Reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant