This repository contains a script to copy all files and folders from a shared Google Drive folder to your own Google Drive folder using Google Colab and PyDrive2. This allows you to easily make copies of shared content directly in your browser.
- No Coding Skills Required: You don't need to know any programming or coding to use this script.
- Browser-Based Solution: All steps are performed online in your web browser using Google Colab.
- Simple and Easy Setup: Follow the step-by-step instructions to quickly set up and run the script.
- Automated Process: The script automates the copying process, saving you time and effort.
- User-Friendly Instructions: Detailed, user-friendly instructions make it easy for anyone to follow.
- A Google account with access to Google Drive.
-
Shared Folder ID:
- Open the shared folder in Google Drive.
- The URL will look something like this:
https://drive.google.com/drive/folders/SHARED_FOLDER_ID
. - Copy the
SHARED_FOLDER_ID
from the URL.
-
Your Own Folder ID:
- Open your destination folder in Google Drive.
- The URL will look something like this:
https://drive.google.com/drive/folders/MY_OWN_FOLDER_ID
. - Copy the
MY_OWN_FOLDER_ID
from the URL.
- Ensure you have read access to the shared folder.
- Ensure you have write access to your own destination folder.
- Open Google Colab and create a new notebook.
- Copy the contents of
copy_drive_folder.py
into a cell in the notebook. - Replace
SHARED_FOLDER_ID
andMY_OWN_FOLDER_ID
with the IDs obtained in Step 1. - Grant Permissions: When prompted, a pop-up window will ask for permissions to access your Google Drive. Make sure to tick all the necessary boxes to grant permissions.
- Run the cell to execute the script.
- Obtain Folder IDs: 2-5 minutes
- Check Permissions: 2-5 minutes
- Run the Script: 10-30 minutes (depending on the size of the folder and internet speed)
The script is located in the file copy_drive_folder.py
.
- Copy: Copy the script into a new cell in a Google Colab notebook.
- Edit: Replace the placeholder folder IDs with your actual folder IDs.
- Execute: Run the cell to start copying files and folders.
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Drive Batch Delete: Use your browser to batch delete files from Google Drive folders that match a specific pattern, all online using Google Colab.
- no coding required
- browser-based solution
- easy setup
- quick execution
- automated process
- secure
- user-friendly instructions
- error handling
- time-efficient
- online
- Google Drive
- Google Colab
- PyDrive2
- shared folder
- file copy