code: void backupDirs() throws IOException {
      File rootDir = sd.getRootDir();
      FileSystem localFs = FileSystem.getLocal(conf).getRaw();
      NNStorageDirectoryRetentionManager.backupFiles(localFs, rootDir, conf);
    }
docs: /*
  Allow us to backup the storage directory before formatting.