# Google Data Transfers - [API documentation](#api-documentation) - [Definitions](#definitions) - [Display transfer apps](#display-transfer-apps) - [Create transfers](#create-transfers) - [Display transfers](#display-transfers) ## API documentation * [Data Transfer API](https://developers.google.com/admin-sdk/data-transfer/reference/rest/v1/transfers) * [Prepare account for transfer](https://support.google.com/a/answer/1247799) ## Definitions ``` ::= calendar| currents| datastudio|lookerstudio|"google data studio"| drive|gdrive|googledrive|"drive and docs" ::= "(,)*" ::= id: ::= || ::= ::= ::= ``` ## Display transfer apps ``` gam print|show transferapps ``` ## Create transfers ``` gam create|add datatransfer|transfer [private|shared|all] [privacy_level private|shared|private,shared] [releaseresources []] ( )* [wait ] ``` For`datastudio` and `drive`, there are options to control the privacy level of the files to be transferred. * `private` or `privacy_level private` - Transfer files that are not shared with anyone * `shared` or `privacy_level shared` - Transfer files shared with at least one other user; this is the **default** * `all` or `privacy_level private,shared` - Transfer all files For calendars, there is an option to indicate whether to release resources for future events. * `releaseresources false` - Do not release resources for future events; this is the default. * `releaseresources` or `releaseresources true` - Release resources for future events A `` is returned which can be used to monitor the progress of the transfer. NOTE: For calendars, the behaviour is not sufficiently defined in the API documentation. As of 2020-06-10, background transfers only transfer future non-private events with at least one guest/resource. The option ` ` is for future expansion. By default, GAM does not wait for the transfer to complete. The option `wait ` causes GAM to wait for the transfer to complete. The first `` must be in the range 5-60 and is the number of seconds between checks to see if the transfer has completed. The second `` is the maximum number of checks to perform. ## Display transfers ``` gam info datatransfer|transfer gam show datatransfers|transfers [olduser|oldowner ] [newuser|newowner ] [status completed|failed|inprogress|] [delimiter ] gam print datatransfers|transfers [todrive *] [olduser|oldowner ] [newuser|newowner ] [status completed|failed|inprogress|] [delimiter ] (addcsvdata )* ``` By default, all data transfer operations are printed, use these options to select specific transfers. * `olduser|oldowner ` * `newuser|newowner ` * `status completed|failed|inprogress` By default, the entries in lists of items are separated by the `csv_output_field_delimiter` from `gam.cfg`. * `delimiter ` - Separate list items with `` Add additional columns of data from the command line to the output * `addcsvdata `