VOOZH about

URL: https://apify.com/nec/google-drive-copier

⇱ Copy Google Drive Folder to Another Drive Automatically Β· Apify


Pricing

from $9.00 / 1,000 results

Go to Apify Store

Google Drive Folder Copier

Copy entire folders and files from any public or shared Google Drive link directly into your Google Drive. Supports large files, nested folders, and automated structure replication β€” no manual downloads required.

Pricing

from $9.00 / 1,000 results

Rating

5.0

(1)

Developer

πŸ‘ NEC

NEC

Maintained by Community

Actor stats

2

Bookmarked

3

Total users

3

Monthly active users

17 days ago

Last modified

Share

πŸ“‹ What does Google Drive Copier do?

Google Drive Copier lets you copy files and folders from a public or shared Google Drive link directly into your personal Google Drive account. Just paste a share link, specify where you want the files, and the Actor handles the rest β€” recursive folder traversal, conflict resolution, file type filtering, and progress tracking. Run it on the Apify platform to take advantage of scheduling, API access, and integrations with other tools.

πŸ’‘ Why use Google Drive Copier?

  • Bulk copy shared content β€” Copy entire folder structures with hundreds of files in one run, no manual downloading and re-uploading
  • Preserve folder structure β€” Recreates the exact folder hierarchy from the source in your destination, or flatten everything into one folder
  • Smart conflict handling β€” Choose to skip, overwrite, or rename files when duplicates exist
  • Filter by file type β€” Copy only PDFs, spreadsheets, or any specific file types you need
  • Track every file β€” Get a detailed dataset showing every file copied, skipped, or failed with direct links to the destination
  • Schedule recurring copies β€” Set up automated runs to keep your Drive in sync with shared content

πŸš€ How to use Google Drive Copier

  1. Get a Google Drive share link β€” Right-click a folder or file in Google Drive β†’ Share β†’ Copy link. The link should look like https://drive.google.com/drive/folders/...
  2. Find your destination folder ID β€” Open the destination folder in Google Drive. The folder ID is the last part of the URL: drive.google.com/drive/folders/YOUR_FOLDER_ID
  3. Configure the Actor β€” Go to the Input tab and paste the share link and destination folder ID
  4. Run the Actor β€” Click Start. On the first run, you'll need to authorize Google Drive access via the Live View tab
  5. Authorize Google Drive β€” Open the Live View tab, click "Sign in with Google", complete the consent screen, then paste the authorization code back into the form
  6. Check results β€” Go to the Output tab to see every file that was copied with status and destination links
πŸ‘ Live View

πŸ’Ύ Authorization is a one-time step. Future runs reuse the saved tokens automatically.

Headless / automated runs: If you already have a Google OAuth refresh token, paste it into the oauthRefreshToken field to skip the interactive consent screen entirely.

βš™οΈ Input

FieldTypeRequiredDescription
publicDriveLinkStringβœ… YesGoogle Drive share link (folder or file)
destinationFolderIdStringβœ… YesYour destination folder ID from the Drive URL
conflictResolutionStringNoWhat to do with duplicates: skip, overwrite, or rename (default: rename)
maxFolderDepthIntegerNoHow deep to traverse nested folders, 1–10 (default: 10)
copyFilesOnlyBooleanNoSkip folder structure, put all files in the destination folder (default: false)
fileTypeFilterStringNoComma-separated extensions to include, e.g. pdf,docx,xlsx. Empty copies all
maxFilesPerRunIntegerNoSafety limit on files per run, 1–10,000 (default: 10000)
oauthRefreshTokenStringNoPre-obtained OAuth refresh token β€” skips the interactive sign-in flow. Used when googleClientId/googleClientSecret are not provided. Stored as a secret.

Example input

{
"publicDriveLink":"https://drive.google.com/drive/folders/1abc2def3ghi4jkl5mno6pqr7stu8vwx",
"destinationFolderId":"1zyx9wvu8tsr7qpo9nml8kji7hug6fed",
"conflictResolution":"rename",
"maxFolderDepth":10,
"fileTypeFilter":"pdf,docx"
}

Headless example (using a refresh token):

{
"publicDriveLink":"https://drive.google.com/drive/folders/1abc2def3ghi4jkl5mno6pqr7stu8vwx",
"destinationFolderId":"1zyx9wvu8tsr7qpo9nml8kji7hug6fed",
"oauthRefreshToken":"1//0gABCDEF..."
}

πŸ“¦ Output

Each copied file is stored as a separate record in the dataset. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

Example output

{
"name":"quarterly-report.pdf",
"type":"file",
"status":"copied",
"sourceId":"1abc2def3ghi4jkl",
"destinationId":"9xyz8wvu7tsr6qpo",
"mimeType":"application/pdf",
"sizeBytes":2458624,
"skipReason":"",
"error":"",
"destinationUrl":"https://drive.google.com/file/d/9xyz8wvu7tsr6qpo/view"
}

A run summary with aggregate counts is also saved in the key-value store under the SUMMARY key.

πŸ—‚οΈ Data table

FieldDescription
nameFile or folder name
typefile or folder
statuscopied, skipped, or failed
sourceIdGoogle Drive ID of the source item
destinationIdGoogle Drive ID of the copied item
mimeTypeMIME type (e.g. application/pdf)
sizeBytesFile size in bytes
skipReasonWhy the file was skipped: duplicate, filtered, or maxFilesReached
errorError message if the copy failed
destinationUrlDirect link to the copied file in your Drive

πŸ”§ Tips and advanced options

  • Use copyFilesOnly: true to flatten a deeply nested folder structure into a single destination folder
  • Use fileTypeFilter to selectively copy only the file types you need (e.g. pdf,xlsx to grab only documents and spreadsheets)
  • Set maxFilesPerRun to a lower number for testing or to control costs on large folders
  • Execution time estimates: Copying 100 files typically takes 2–3 minutes; 1,000 files takes 15–30 minutes (varies by file sizes and API quota)
  • Conflict resolution strategies:
    • rename (default) β€” adds (1), (2) etc. to duplicate filenames
    • skip β€” leaves existing files untouched
    • overwrite β€” replaces existing files with the new copy
  • Automate without a browser β€” Provide an oauthRefreshToken to run fully headlessly, ideal for scheduled or API-triggered runs
  • Schedule runs using Apify's scheduling feature to periodically sync shared content into your Drive

❓ FAQ, disclaimers, and support

Is this legal?

This Actor copies files that are shared with you via Google Drive's sharing features. You are responsible for ensuring you have the right to copy the content. The Actor respects Google Drive's API terms of service and rate limits.

What permissions does it need?

The Actor requests full Google Drive access (drive scope) to read shared files and create copies in your account. You can revoke access at any time from your Google Account permissions page.

How do I get an OAuth refresh token?

You can obtain a refresh token using the Google OAuth Playground:

  1. Select the https://www.googleapis.com/auth/drive scope
  2. Authorize and exchange the authorization code for tokens
  3. Copy the Refresh token value and paste it into the oauthRefreshToken input field

Where are my Google tokens stored?

OAuth tokens are stored securely in a named key-value store called google-oauth-tokens-drive within your Apify account. This storage is encrypted and only accessible by your Actor runs. You can delete this store at any time to force re-authentication on the next run.

What if my run times out?

The Actor handles interruptions gracefully. If aborted, it saves a partial summary with accurate counts of everything processed so far. You can run it again β€” use conflictResolution: skip to avoid re-copying files that were already transferred.

Troubleshooting

Q: "Destination folder is not accessible" error

  • Verify the folder ID is correct (copy from the Drive URL: drive.google.com/drive/folders/YOUR_FOLDER_ID)
  • Check that you have write permissions to the destination folder
  • Ensure the folder hasn't been deleted or moved

Q: "Rate limit exceeded" errors

  • Google Drive has a 10,000 API request limit per user per day
  • Large folder copies may need to be split across multiple runs
  • Use maxFilesPerRun to limit requests per run

Q: Files are missing from the copied folder

  • Check if they were filtered by file type (fileTypeFilter)
  • Verify they weren't skipped due to duplicate naming
  • Check the Actor's output dataset for details on each file

Q: "Google Drive API is not enabled" error

  • Go to Google Cloud Console
  • Click Enable to activate the Google Drive API
  • Try running the Actor again

Known limitations

  • Google Drive API daily quota is 10,000 requests per user. Very large folders (10,000+ files) may require multiple runs
  • Maximum folder nesting depth is 10 levels
  • Files up to 5 GB are supported
  • The Actor cannot copy Google Docs/Sheets/Slides native formats β€” these are copied as-is using the Drive copy API

Support

Found a bug or have a feature request? Open an issue in the Issues tab on the Actor page.

You might also like

Google Drive

onidivo/google-drive

Transfer files between Apify's key-value stores and Google Drive.

πŸ‘ User avatar

Onidivo Technologies

51

Google Photos to Drive Backup

nec/photos-to-drive-backup

Download photos from public or shared Google Photos album links and upload them directly to your Google Drive. Automatically transfer images in bulk with no manual saving required.

Google Drive MCP Server

salmon_wildfire/google-drive-mcp-server

A secure and extensible Google Drive MCP (Machine Control Protocol) Server built using Apify Actors. This actor enables AI agents, automation workflows, and applications to safely list, search, and read Google Drive files using user-provided credentials β€” without storing any secrets.

Payhawk β†’ Google Drive receipt sync

apify/payhawk-google-drive-receipt-sync

Automatically archive Payhawk expense receipts (PDFs) to a Google Drive folder. Incremental, idempotent, schedule-friendly β€” every new receipt lands in Drive without duplicates.

Site Files Exporter

youssefb/site-files-exporter

Site Files Exporter deep-crawls provided start URLs, filters out unwanted links, downloads matching documents to organized folders, and logs outcomes and metadata so you can quickly collect site files at scale.

πŸ‘ User avatar

Youssef Benhammouda

8

Google Maps Shared List Scraper

automation-lab/google-maps-shared-list-scraper

πŸ—ΊοΈ Export public Google Maps shared lists into structured place datasets with names, addresses, coordinates, notes, and list context.

πŸ‘ User avatar

Stas Persiianenko

2

Drive.com.au News Scraper

parseforge/drive-com-au-news-scraper

Collect professional car reviews and expert ratings from Drive.com.au with 11 detailed rating scores per review. Filter by vehicle category, author, keyword, tag, or year. Get review excerpts, publication dates, vehicle IDs, author details, and content tags for over 18,000 automotive reviews.

Loom Scraper | πŸŽ₯Downloader & πŸ“„ Transcript

dz_omar/loom-video-scraper

πŸŽ₯ Advanced Loom scraper that extracts & downloads videos, transcripts, and metadata from individual videos and entire πŸ—‚οΈfolders. Supports bulk operations, multiple formats (SRT, VTT, TXT, XML), and authentication. πŸ“š Ideal for content archiving and knowledge management.

πŸ‘ User avatar

FlowExtract API

254

4.7

Related articles

How to download social media comments into a Google Doc
Read more
How to scrape Google Images in 4 steps
Read more
How to scrape Google Scholar πŸŽ“
Read more