Back Up Cloudera Manager Server
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
- Log in to the Cloudera Manager Server host.
ssh my_cloudera_manager_server_host
- 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 Cloudera Manager Server directories along with the CSP key file when
Credential Storage Provider (CSP) is
enabled:
sudo -E tar -cf $CM_BACKUP_DIR/cloudera-scm-server.tar /etc/cloudera-scm-server /etc/default/cloudera-scm-server ***/path/to/csp/keys***
- Back up the Cloudera Manager Server directories without CSP key
file:
sudo -E tar -cf $CM_BACKUP_DIR/cloudera-scm-server.tar /etc/cloudera-scm-server /etc/default/cloudera-scm-server
- Back up the Cloudera Manager Server directories along with the CSP key file when
Credential Storage Provider (CSP) is
enabled:
- Back up the existing repository directory.
- RHEL / CentOS
-
sudo -E tar -cf $CM_BACKUP_DIR/repository.tar /etc/yum.repos.d
- SLES
-
sudo -E tar -cf $CM_BACKUP_DIR/repository.tar /etc/zypp/repos.d
- Ubuntu
-
sudo -E tar -cf $CM_BACKUP_DIR/repository.tar /etc/apt/sources.list.d