Backing up Ozone

You must shutdown the cluster and take the backup of OM and SCM metadata.

  1. On each OM, copy the directories indicated by the ozone.om.db.dirs and ozone.om.ratis.storage.dir config keys to the backup location by running the command cp -r <config_directory> <backup_directory>.
  2. On each SCM, copy the directories indicated by the ozone.scm.db.dirs and ozone.scm.ha.ratis.storage.dir config keys to the backup location by running the command cp -r <config_directory> <backup_directory>.