Step 2: Backing Up Host Files Before Upgrading the Operating System

Loading Filters ... 5.16 5.15 5.14 5.13 7.6.7 7.4.4 5.16 5.15 5.14 5.13 7.1.7.2000 7.1.7

This topic describes how to backup important files on your host before upgrading the operating system.

Backing Up

  1. Create a top-level backup directory.
    export CM_BACKUP_DIR="`date +%F`-CM"
    echo $CM_BACKUP_DIR
    mkdir -p $CM_BACKUP_DIR
  2. Back up the Agent directory and the runtime state.
    
    sudo -E tar -cf $CM_BACKUP_DIR/cloudera-scm-agent.tar --exclude=*.sock /etc/cloudera-scm-agent /etc/default/cloudera-scm-agent /var/run/cloudera-scm-agent /var/lib/cloudera-scm-agent
  3. Back up the Cloudera Manager Server directories:
    
    sudo -E tar -cf $CM_BACKUP_DIR/cloudera-scm-server.tar /etc/cloudera-scm-server /etc/default/cloudera-scm-server
  4. Back up the Cloudera Manager databases. See Backing up Cloudera Manager databases