is it possible to write/save to disk all the meta-data of a DICOM image without explicitly stating which tags to copy?

How is two lines in SimpleITK + printing:

for key in img.GetMetaDataKeys(): 
   print("{0}: {1}".format(key, img.GetMetaData(key))) 
   img2.SetMetaData(key, img.GetMetaData(key))

Generally blindly coping tags is discouraged.