By its definition, a cloud optimized GeoTIFF is a regular GeoTIFF file, aimed at being hosted on a HTTP file server, whose internal organization is friendly for consumption by clients issuing.
Based on the gdal doc, I can create a cloud optimized tif by running
gdal_translate in.tif out.tif -co TILED=YES -co COPY_SRC_OVERVIEWS=YES -co COMPRESS=LZW
on a file with existing overviews.
Because of the size of my tif files, I would like to avoid making my tif file "cloud optimized" after building the pyramid in order not to duplicate the writing.
Is it possible to use the -co COPY_SRC_OVERVIEWS=YES when I build my pyramids with gdaladdo or is it necessary to run it in an additional step ?