Configuration & Administration

Expand all | Collapse all

Backup to different directory - Zenoss core

  • 1.  Backup to different directory - Zenoss core

    Posted 02-14-2018 04:20 PM
    Edited by Eamon B 02-15-2018 04:22 PM
    H All
     We have an old server in work and it has zenoss core on it. I want to back up the configuration file on it and virtualize the server. We are tight for space, but there is enough of space on the physical drive to add on. So I mounted that drive to back up the config and now I want to back up to that space. I think what I have to do is change the zenhome folder to the other drive. Then some how change were it backs up to the temp folder and also direct that to the new mount. That's how tight we are on space. Any ideas?

    Any help would be appreciate it.
    thanks.

    ------------------------------
    Eamon

    ------------------------------


  • 2.  RE: Backup to different directory - Zenoss core

    Posted 03-10-2018 04:12 AM
    Hi Eamon,
    You can set both the final directory target and the temp directory.  Be aware that the whole backup is made first to "temp" and then copied to the target directory so you need sufficient space in BOTH.  Here is a wee script that parameterises the backup:

    # Source the zenoss environment
    . ~zenoss/.bashrc

    # Zenoss parameters
    tempdir='/tmp'
    backupdir="$ZENHOME/backups"
    backupLog="/$ZENHOME/log/zenbackup.log"
    echo `date` > $backupLog 2>&1

    #
    # Do the backup
    # to omit eventsdb add --no-eventsdb
    # to omit zodb add --no-zodb
    # to omit perf databases add --no-perfdata
    #

    $ZENHOME/bin/zenbackup --temp-dir=$tempdir --mibs --libexec --no-eventsdb --no-perfdata --file=$backupdir/zenbackup_`date +%Y%m%d%H%M`.tgz -v 10 >> $backupLog 2>&1


    Cheers,
    Jane

    ------------------------------
    Jane Curry
    Skills 1st United Kingdom
    jane.curry@skills-1st.co.uk
    ------------------------------



  • 3.  RE: Backup to different directory - Zenoss core

    Posted 11-07-2018 09:04 AM
    Hi Jane,

    Sorry for the tardy reply. Just started looking into this again. Just wanted to say thanks for the info.

    ------------------------------
    Eamon

    ------------------------------