File: //snap/google-cloud-cli/current/help/man/man1/gcloud_alpha_bq_tables_copy.1
.TH "GCLOUD_ALPHA_BQ_TABLES_COPY" 1
.SH "NAME"
.HP
gcloud alpha bq tables copy \- copy one BigQuery table to another
.SH "SYNOPSIS"
.HP
\f5gcloud alpha bq tables copy\fR (\fB\-\-destination\fR=\fIDESTINATION\fR\ :\ \fB\-\-destination\-dataset\fR=\fIDESTINATION_DATASET\fR) (\fB\-\-source\fR=\fISOURCE\fR\ :\ \fB\-\-source\-dataset\fR=\fISOURCE_DATASET\fR) [\fB\-\-async\fR] [\fB\-\-job\-id\fR=\fIJOB_ID\fR] [\fB\-\-overwrite\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(ALPHA)\fR \fBgcloud alpha bq tables copy\fR Copies one BigQuery table to
another.
.SH "EXAMPLES"
The following copies table \f5my\-table\fR to table \f5my\-other\-table\fR, in
dataset \f5my\-dataset\fR overwriting destination if it exists:
.RS 2m
$ gcloud alpha bq tables copy \-\-source my\-table \e
\-\-destination my\-other\-table \-\-source\-dataset my\-dataset \e
\-\-overwrite
.RE
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
Table resource \- The destination to copy to. The arguments in this group can be
used to specify the attributes of this resource. (NOTE) Some attributes are not
given arguments in this group but can be set in other ways.
To set the \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5\-\-destination\fR on the command line with a fully
specified name;
.IP "\(em" 2m
provide the argument \f5\-\-project\fR on the command line;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp
This must be specified.
.RS 2m
.TP 2m
\fB\-\-destination\fR=\fIDESTINATION\fR
ID of the table or fully qualified identifier for the table.
To set the \f5source\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5\-\-destination\fR on the command line.
.RE
.sp
This flag argument must be specified if any of the other arguments in this group
are specified.
.TP 2m
\fB\-\-destination\-dataset\fR=\fIDESTINATION_DATASET\fR
The id of the BigQuery dataset.
To set the \f5dataset\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5\-\-destination\fR on the command line with a fully
specified name;
.IP "\(bu" 2m
provide the argument \f5\-\-destination\-dataset\fR on the command line;
.IP "\(bu" 2m
provide the argument \f5\-\-source\-dataset\fR on the command line.
.RE
.sp
.RE
.sp
.TP 2m
Table resource \- The source to copy from. The arguments in this group can be
used to specify the attributes of this resource. (NOTE) Some attributes are not
given arguments in this group but can be set in other ways.
To set the \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5\-\-source\fR on the command line with a fully specified
name;
.IP "\(em" 2m
provide the argument \f5\-\-project\fR on the command line;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp
This must be specified.
.RS 2m
.TP 2m
\fB\-\-source\fR=\fISOURCE\fR
ID of the table or fully qualified identifier for the table.
To set the \f5source\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5\-\-source\fR on the command line.
.RE
.sp
This flag argument must be specified if any of the other arguments in this group
are specified.
.TP 2m
\fB\-\-source\-dataset\fR=\fISOURCE_DATASET\fR
The id of the BigQuery dataset.
To set the \f5dataset\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5\-\-source\fR on the command line with a fully specified
name;
.IP "\(bu" 2m
provide the argument \f5\-\-source\-dataset\fR on the command line;
.IP "\(bu" 2m
provide the argument \f5\-\-destination\-dataset\fR on the command line.
.RE
.sp
.RE
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-async\fR
Return immediately, without waiting for the operation in progress to complete.
.TP 2m
\fB\-\-job\-id\fR=\fIJOB_ID\fR
A unique job ID to use for the request. If not specified a unique job id will be
generated.
.TP 2m
\fB\-\-overwrite\fR
Overwrite if the resource already exists.
.RE
.sp
.SH "GCLOUD WIDE FLAGS"
These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.
Run \fB$ gcloud help\fR for details.
.SH "NOTES"
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist.