Skip to content

Instantly share code, notes, and snippets.

@Hemie143
Forked from JosefJezek/zenoss-backup.md
Created April 12, 2017 14:38
Show Gist options
  • Save Hemie143/67c8aa8c34f887239640a08142f5ad6e to your computer and use it in GitHub Desktop.
Save Hemie143/67c8aa8c34f887239640a08142f5ad6e to your computer and use it in GitHub Desktop.
Zenoss Backup

Zenoss Backup

#/bin/bash

export ZENHOME=/opt/zenoss

cd /opt/zenoss/backups
rm -f *.tgz *.log

/opt/zenoss/bin/zenbackup -v10 > /opt/zenoss/backups/backup.log

Restore

  • You must ensure that the same ZenPacks that were installed on the backup system are also installed on the target system.
  • zenoss stop
  • zenrestore -v --file BACKUPFILEPATH
  • http://community.zenoss.org/docs/DOC-12025

Recovery Passwords

Mysql

use mysql;
SET PASSWORD FOR 'zenoss'@'localhost' = PASSWORD('zenoss');
FLUSH PRIVILEGES;

ZenDMD

dmd.ZenEventManager.host = 'localhost'
dmd.ZenEventManager.password = 'zenoss'
dmd.ZenEventManager.user = 'zenoss'
commit()

Secure

  • su -l -c /opt/zenoss/bin/secure_zenoss.sh zenoss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment