Backing Up Host Files Before Upgrading the Operating System
This topic describes how to backup important files on your host before upgrading the operating system.
Fill in the following form to create a customized set of instructions for your environment. Fill out the form above before you proceed. To share this environment with others, click the icon next to My Environment to copy a link specific for this environment to the clipboard.My Environment
Backing Up
- Create a top-level backup directory.
export CM_BACKUP_DIR="`date +%F`-CM" echo $CM_BACKUP_DIR mkdir -p $CM_BACKUP_DIR
- 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
- 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