gcloud_beta_dns_record-sets_export (1)
NAME
- gcloud beta dns record-sets export - export your record-sets into a file
SYNOPSIS
-
gcloud beta dns record-sets export RECORDS_FILE --zone=ZONE, -z ZONE [--zone-file-format] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) This command exports the record-sets contained within the
POSITIONAL ARGUMENTS
-
- RECORDS_FILE
-
File to which record-sets should be exported.
REQUIRED FLAGS
-
- --zone=ZONE, -z ZONE
-
Name of the managed-zone whose record-sets you want to manage.
OPTIONAL FLAGS
-
- --zone-file-format
-
Indicates that records-file should be in the zone file format. When using this
flag, expect the record-set to be exported to a BIND zone formatted file. If
you omit this flag, the record-set is exported into a YAML formatted records
file. Note, this format flag determines the format of the output recorded in the
records-file; it is different from the global --format flag which
affects console output alone.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
EXAMPLES
To export record-sets into a yaml file, run:
-
$ gcloud beta dns record-sets export records.yaml \
--zone examplezonename
To export record-sets into a BIND zone formatted file instead, run:
-
$ gcloud beta dns record-sets export pathto.zonefile \
--zone examplezonename --zone-file-format
Similarly, to import record-sets into a BIND zone formatted zone file, run:
-
$ gcloud dns record-sets import pathto.zonefile --zone-file-format \
--zone examplezonename
NOTES
This command is currently in BETA and may change without notice. This variant is also available:
- $ gcloud dns record-sets export