cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
962
Views
0
Helpful
0
Replies

CUCM manual and auto backup procedure using GUIa

BalajiSivaraj49175
Spotlight
Spotlight

CUCM can backup the manually or have sehchduler  to backup the configuration and historical reports from the server diester recovery system

Step 1. Navigate to CUCM > Disaster Recovery System > Backup > Manual Backup as shown in the images:Capture1.JPG

Step 2. Select the Backup Device, the features to be backed up and click Start. For this example, only the UCM feature is backed up as shown in the image:

 

Capture2.JPG

 

When the backup is in progress, you see a status indication as shown in the image:

 

Capture3.JPG

 

When the backup is complete, you see a SUCCESS message that indicates the Backup Completed in CUCM as shown in the image:

 

Capture4.JPG

 

When the backup is complete, you see the .TAR files in the SFTP directory as shown in the image. These files are used later one, if a restore is required:

 

Capture5.JPG

 

 

Start a Manual Backup via CLI Procedure
Step 1. Secure Shell (SSH) into the IP address of the CUCM Publisher and authenticate with the OS username and password as shown in the image:

 

 

Capture6.JPG

 

Step 2. Start a Manual backup with the command syntax: utils disaster_recovery backup network <featurelist> <backup device name> as shown in the image:

 

Capture7.JPG

 

Enable Scheduled Backup via GUI Procedure
Step 1. Navigate to CUCM > Disaster Recovery System > Backup >Scheduler >> Add New as shown in the images:

 

Capture8.JPG

 

 

Capture9.JPG

 

Step 4. Select the features to be backed up

 

Capture10.JPG

 

Step 7. Enable the scheduled backup:

 

 

Capture11.JPG

Enable Scheduled Backup via CLI Procedure
Step 1. Secure Shell (SSH) into the IP address of the CUCM Publisher and authenticate with the OS username and password as shown in the image:

 

Capture12.JPG

 

 

Step 2. Add the scheduled backup with the command syntax: utils disaster_recovery schedule add <schedulename> <devicename> <featurelist> <datetime> <frequency> as shown in the image:

 

 

Capture13.JPG

CUCM Delete an Old Backup Example

Backup device configuration with Number of Backups set to 1 as shown in the image:

 

Capture14.JPG

 

Backup directory with only 1 backup available (16 files) as shown in the image:

 

Capture15.JPG

 

CUCM first starts to transfer backup files before it deletes the old backup (Reaches 32 files):

 

Capture16.JPG

 

Once the backup is complete, DRS deletes the old backup to be in compliance with the number of backups to store in Network Directory (16 files):

 

Capture17.JPG

 

Log Analysis of Successful New Backup Created and Old Backup Deleted
++++++++++++
The message you see when a manual backup is started: BEGIN MANUAL
++++++++++++

2018-12-25 11:11:59,486 DEBUG [NetMessageDispatch] - drfMessageValidator.validateMessage(): Starting introspection for Message ID = 1700 Message Body =
========== BEGIN msgSubBackup_REQ ==========
m_bLeaveTempBackupDirectoryInPlace : false
destinationId : TAC-Backup
backupType : MANUAL
featuresTobeBackedup : [UCM]
========== END msgSubBackup_REQ ==========

++++++++++++++++
This is the device that was added as a backup device: TAC-Backup
++++++++++++++++

2018-12-25 11:11:59,486 DEBUG [NetMessageDispatch] - drfMessageHandler:HandleBackup: The backup is being processed for the device: TAC-Backup

++++++++++++++++++++++
Ensure SFTP is accessible
++++++++++++++++++++++

2018-12-25 11:11:59,487 DEBUG [NetMessageDispatch] - drfMessageHandler:HandleBackup: Executing sftpLsFiles to make sure SFTP is accessible.
2018-12-25 11:11:59,487 INFO [NetMessageDispatch] - drfUtils:sftpLsFiles-: Executing JSCH SFTP ls command for: User: ciscoHostName: 192.X.X.250 from source :/UCM/Backups/ with pattern -l
2018-12-25 11:11:59,487 DEBUG [NetMessageDispatch] - drfUtils:establishSftpConnection: Trying to connect to the SFTP server.

+++++++++++++++++++++++++++++++++
CUCM connects to remote SFTP server
+++++++++++++++++++++++++++++++++

2018-12-25 11:11:59,617 DEBUG [NetMessageDispatch] - drfUtils:establishSftpConnection: Authentication Completed Successfully, connected to remote server. Now opening a SFTP channel.

+++++++++++++++++++++
Number of features that were selected:
Found 1 features selected
Feature Name: UCM
+++++++++++++++++++++

2018-12-25 11:11:59,834 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Found 1 features selected for Restore
2018-12-25 11:11:59,834 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Feature Name: UCM. Server Name: D3-SB-11PUB. Component Name: CDPAGTDirectBackup set to : yes
2018-12-25 11:11:59,834 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Feature Name: UCM. Server Name: D3-SB-11PUB. Component Name: SYSLOGAGTDirectBackup set to : yes
2018-12-25 11:11:59,834 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Feature Name: UCM. Server Name: D3-SB-11PUB. Component Name: PLATFORMDirectBackup set to : yes
2018-12-25 11:11:59,834 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Feature Name: UCM. Server Name: D3-SB-11PUB. Component Name: CLMDirectBackup set to : yes
2018-12-25 11:11:59,834 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Feature Name: UCM. Server Name: D3-SB-11PUB. Component Name: CCMDBDirectBackup set to : yes
2018-12-25 11:11:59,834 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Feature Name: UCM. Server Name: D3-SB-11PUB. Component Name: TCTDirectBackup set to : yes
2018-12-25 11:11:59,835 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Feature Name: UCM. Server Name: D3-SB-11PUB. Component Name: CCMPREFSDirectBackup set to : yes
2018-12-25 11:11:59,835 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Feature Name: UCM. Server Name: D3-SB-11PUB. Component Name: TFTPDirectBackup set to : yes
2018-12-25 11:11:59,835 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Feature Name: UCM. Server Name: D3-SB-11PUB. Component Name: MOHDirectBackup set to : yes
2018-12-25 11:11:59,835 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Feature Name: UCM. Server Name: D3-SB-11PUB. Component Name: ANNDirectBackup set to : yes
2018-12-25 11:11:59,835 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Feature Name: UCM. Server Name: D3-SB-11PUB. Component Name: BATDirectBackup set to : yes
2018-12-25 11:11:59,835 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Feature Name: UCM. Server Name: D3-SB-11PUB. Component Name: CEFDirectBackup set to : yes
2018-12-25 11:11:59,835 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Feature Name: UCM. Server Name: D3-SB-11PUB. Component Name: REPORTERDirectBackup set to : yes
2018-12-25 11:11:59,835 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Feature Name: UCM. Server Name: D3-SB-11PUB. Component Name: DNALIASLOOKUPDirectBackup set to : yes
2018-12-25 11:11:59,835 DEBUG [NetMessageDispatch] - drfMessageHandler:setComponentBackupType: Feature Name: UCM. Server Name: D3-SB-11PUB. Component Name: DNALIASSYNCDirectBackup set to : yes

++++++++++++++++++++++++
33 files found at the given path
++++++++++++++++++++++++

2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 33 files found at the given path

2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_UCM_PLATFORM.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_drfComponent.xml
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_REPORTER.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_CLM.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_UCM_DNALIASSYNC.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_UCM_REPORTER.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_MOH.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_BAT.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_UCM_CCMDB.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_UCM_SYSLOGAGT.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_CEF.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_CCMPREFS.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_UCM_CCMPREFS.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_TCT.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_UCM_CEF.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_PLATFORM.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_CDPAGT.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_ANN.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_SYSLOGAGT.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_UCM_TFTP.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_TFTP.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_CCMDB.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_UCM_ANN.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_DNALIASSYNC.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_DNALIASLOOKUP.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_UCM_CDPAGT.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_UCM_MOH.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_UCM_CLM.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_UCM_DNALIASLOOKUP.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_UCM_BAT.tar
2018-12-25 11:16:23,886 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-24-13-21-17_D3-SB-11PUB_UCM_TCT.tar

+++++++++++++++++++++++++++++++++
This is used to keep track of number of backups:
DRS gets a list of its previous backup IDs:
2018-12-24-13-21-17
2018-12-25-11-12-03
+++++++++++++++++++++++++++++++++

2018-12-25 11:16:23,887 INFO [TarWorkerThread] - drfSftpManager:drfGetListOfBackups: Adding the backup id after the _pubhostname filtering:2018-12-24-13-21-17
2018-12-25 11:16:23,887 INFO [TarWorkerThread] - drfSftpManager:drfGetListOfBackups: Adding the backup id after the _pubhostname filtering:2018-12-25-11-12-03

+++++++++++++
list size : 1
+++++++++++++

2018-12-25 11:16:24,852 INFO [TarWorkerThread] - drfSftpManager.RemoveOldBackupSet: list size : 1

+++++++++++++++++++++++++++++++++++++++++++++++++++++++
CUCM removes: /UCM/Backups/2018-12-24-13-21-17_D3-SB-11PUB*
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

2018-12-25 11:16:24,852 INFO [TarWorkerThread] - drfSftpManager.RemoveOldBackupSet: Removing: /UCM/Backups/2018-12-24-13-21-17_D3-SB-11PUB*

+++++++++++++++++++++
List now only has 1 backup
+++++++++++++++++++++

2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 18 files found at the given path
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_REPORTER.tar
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_CLM.tar
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_MOH.tar
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_BAT.tar
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_CEF.tar
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_CCMPREFS.tar
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_TCT.tar
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_PLATFORM.tar
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_CDPAGT.tar
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_ANN.tar
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_SYSLOGAGT.tar
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_TFTP.tar
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_CCMDB.tar
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_DNALIASSYNC.tar
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_UCM_DNALIASLOOKUP.tar
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: 2018-12-25-11-12-03_D3-SB-11PUB_drfComponent.xml
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfutils.sftpLsFiles-: Found 16 matching the search criteria.

++++++++++++++++++++++
CUCM closes ChannelSftp...
++++++++++++++++++++++

2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfUtils:closeSFTPConnections: Closing ChannelSftp...
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfUtils:closeSFTPConnections: Disconnecting Channel...
2018-12-25 11:16:26,405 DEBUG [TarWorkerThread] - drfUtils:closeSFTPConnections: Closing Session...

++++++++++++++++++++++++++
BACKUP operation COMPLETED
++++++++++++++++++++++++++

2018-12-25 11:16:26,572 INFO [TarWorkerThread] - {STATE_IDLE} drfBackup:CompleteBackup(Device=-): === BACKUP operation COMPLETED ===

 

 

 

Capture18.JPG

0 Replies 0