- Request a Data Transfer
- Get Information About a Data Transfer
- Print All Data Transfers
- Print Information About Apps That Support Data Transfer
gam create datatransfer <old owner> <app> <new owner> (<parameter> <value>)*
Creates a data transfer request. Old owner is the source user whose data will be transferred. App is the name of the application data to transfer. New owner is the target user that will receive the data. Depending on the app, optional parameters can be specified which determine the scope of data to be transferred.
This example transfers all Drive files for [email protected] to [email protected]
gam create datatransfer [email protected] drive [email protected] privacy_level shared,private
This example transfers only Drive files shared by [email protected] to [email protected]
gam create datatransfer [email protected] gdrive [email protected] privacy_level shared
This example transfers the Google+ pages for [email protected] to [email protected]
gam create datatransfer [email protected] google+ [email protected]
gam info datatransfer <id>
Get information about an existing data transfer including the status.
This example shows the status of a given data transfer.
gam info datatransfer AKrEtIYIysvNvudwY69gEtJNb85tK87Py2SJl8uwq78BxSMMRgn46rWtuKPIxmkWehZ_YJguKbSs
Old Owner: [email protected]
New Owner: [email protected]
Request Time: 2015-09-29T20:45:28.085Z
Application: Drive
Status: completed
Parameters:
PRIVACY_LEVEL: PRIVATE,SHARED
gam print datatransfers [oldowner <email>] [newowner <email>] [status <completed|failed|inProgress|pending>] [todrive]
Prints a CSV of all data transfers. With no parameters, all transfers will be printed. The oldowner, newowner and status parameters limit the output to results which match. The todrive parameter causes GAM to generate a Google Spreadsheet of the results rather than outputting the CSV file to the console.
This example prints all transfers
gam print datatransfers
This example prints all transfers that have failed to a Google Spreadsheet.
gam print datatransfers status failed todrive
gam print transferapps