gcloud dataflow snapshots create - creates a snapshot for a Cloud Dataflow job
gcloud dataflow snapshots create --job-id=JOB_ID --region=REGION_ID [--snapshot-sources=SNAPSHOT_SOURCES] [--snapshot-ttl=DURATION; default="7d"] [GCLOUD_WIDE_FLAG ...]
Creates a snapshot for a Cloud Dataflow job.
To create a Cloud Dataflow snapshot with sources for a running job, run:
$ gcloud dataflow snapshots create --job-id=JOB_ID \ --region=JOB_REGION --snapshot-sources=true --snapshot-ttl=7d
- --job-id=JOB_ID
The job ID to snapshot.
- --region=REGION_ID
The region ID of the snapshot and job's regional endpoint.
- --snapshot-sources=SNAPSHOT_SOURCES
If true, snapshots will also be created for the Cloud Pub/Sub sources of the Cloud Dataflow job.
- --snapshot-ttl=DURATION; default="7d"
Time to live for the snapshot.
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 $ gcloud help for details.
These variants are also available:
$ gcloud alpha dataflow snapshots create
$ gcloud beta dataflow snapshots create