Skip to content

Move files from regular Google Drive to a Shared Drive

License

Notifications You must be signed in to change notification settings

skaut/shared-drive-mover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shared drive mover

GitHub Release GitHub Actions Workflow Status Codecov (with branch) GitHub License

This app enables Google Workspace users to easily move files from their personal drives to a Shared Drive (previously known as a Team Drive).

The app is intended to run as a Google Apps Script Web App.

How to run

skaut.cz deployment

The app is currently running for users in the @skaut.cz Google Workspace at presun-disku.skauting.cz.

Own deployment

To run the app on your own, clone the repo and, install all the dependencies:

$ git clone https://github.com/skaut/shared-drive-mover.git
$ cd shared-drive-mover 
$ npm install

Create a new script project on https://script.google.com under a Google Workspace account and in the Project properties, copy the Script ID. Put this inside .clasp.json. Then enable Google Apps Script API. You should also modify the webapp.access value in appsscript.json to control who can run the script - see the docs for details.

Finally, build the code and push it to the online project by running:

$ npm run build
$ clasp login
$ clasp push

When asked Manifest file has been updated. Do you want to push and overwrite? type y.

Deploy the online project as a Web App. This should give you an URL to run the project.