Skip to main content

A tool to copy large folders to Shared Drives.

Project description

folderclone - A project that allows you copy large folders to Shared Drives.

Installation

folderclone is available on PyPI, so you can install it using pip.

pip3 install git+git://github.com/arlessweschler/Folderclone@master

multimanager

Multi Manager is the tool that will help you setup everything you need to make folderclone work.

Multi Manager Setup

To set it up, head over to the Python Quickstart page and click the Enable the Drive API. Go through the setup and once its done, download the credentials to a new folder on your computer.

On your terminal, change your directory to that folder you just made and run:

multimanager interactive

This will start multimanager in interactive mode. It'll start by taking you to a login page to authenticate yourself. You'll then be met with a prompt to enable the Service Usage API. Visit the link it provides, enable the API, then go back and press Enter to retry. Don't worry about having to do this every time, this is a one time setup.

Once it's done, you'll be met with the Multi Manager prompt.

Multi Manager
mm>

You have successfully setup Multi Manager!

Quick Setup

For folderclone, you'll need a few Service Accounts (SAs) ready. To do this in, run:

mm> quick-setup N SHARED_DRIVE_ID

Where N is the amount of projects you'd like to use and SHARED_DRIVE_ID the ID of the Shared Drive you'd like to copy to.

For example, say I wanted to copy 100 TB worth of content. I'd need 134 SAs (750 GB each) to do the copy, so 2 projects. I'll be copying to a fresh new Shared Drive who's ID is 0ABCdeyz_ZaMsxxxLGA. I'll be running:

mm> quick-setup 2 0ABCdeyz_ZaMsxxxLGA

This will automatically;

  • create 2 projects
  • enable the required services
  • create Service Accounts
  • add them to the Shared Drive
  • and download their credentials into a new folder accounts

You are now ready to go to the next step.

multifolderclone

multifoldeclone is the tool that will do all the cloning for you. It is the simplest thing to use.

multifolderclone -s SOURCE_FOLDER_ID -d DESTINATION_FOLDER_ID

Where SOURCE_FOLDER_ID is the ID of the folder you'll want to copy (Make sure the source folder is accessible to the service accounts by either making the folder public or sharing the folder with the service accounts you are using to copy with), and DESTINATION_FOLDER_ID is the ID of the folder you are copying to. This could be the ID of the Shared Drive, or a folder inside the Shared Drive.

This will automatically start cloning the folder! And that's it! You did it!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gdclone-0.5.5.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gdclone-0.5.5-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file gdclone-0.5.5.tar.gz.

File metadata

  • Download URL: gdclone-0.5.5.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for gdclone-0.5.5.tar.gz
Algorithm Hash digest
SHA256 2155c837b81c262567140296c0557ba640548f6bcac9d2a2fcf8f3eff358f53c
MD5 58df8559dadbcc39e2053f265ab5eaaf
BLAKE2b-256 c80e20f86e11f6c67a6a02ee8a846563814b50e74bfb3c582841c1793eb1afdc

See more details on using hashes here.

File details

Details for the file gdclone-0.5.5-py3-none-any.whl.

File metadata

  • Download URL: gdclone-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for gdclone-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 670a39b354a6ffd8fb2b8400d19f5fd2c074fbaed7a0f85f8d7941d53e7cbc26
MD5 9e7ec1ffe838640a250dfcbf125c9762
BLAKE2b-256 1b06e39cee6aafa02d7b5537e967c29778393a1c8ee655bae64368a334837abf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page