GDAL-DATASET-COPY(1) GDAL GDAL-DATASET-COPY(1)

gdal-dataset-copy - Copy files of a dataset

Added in version 3.12.

gdal dataset copy creates a copy of the dataset file(s), including potential side-car/associated files.

Usage: gdal dataset copy [OPTIONS] <SOURCE> <DESTINATION>
Copy files of a dataset.
Positional arguments:
  --source <SOURCE>            Source dataset name [required]
  --destination <DESTINATION>  Destination dataset name [required]
Common Options:
  -h, --help                   Display help message and exit
  --json-usage                 Display usage as JSON document and exit
  --config <KEY>=<VALUE>       Configuration option [may be repeated]
Options:
  --overwrite                  Whether overwriting existing output is allowed
Advanced Options:
  -f, --format <FORMAT>        Dataset format

Source file name or directory name. Required.
Destination file name or directory name. Required.
Dataset format. Helps if automatic detection does not work.
Allow program to overwrite existing target file or dataset. Otherwise, by default, gdal errors out if the target file or dataset already exists.

$ gdal dataset copy source.tif destination.tif

Even Rouault <even.rouault@spatialys.com>

1998-2025

December 18, 2025