TECHZEN Zenoss User Community ARCHIVE  

Backup to different directory - Zenoss core

Subject: Backup to different directory - Zenoss core
Author: Eamon
Posted: 2018-02-14 17:20

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
------------------------------


Subject: RE: Backup to different directory - Zenoss core
Author: Jane Curry
Posted: 2018-03-10 05:12

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
------------------------------


Subject: RE: Backup to different directory - Zenoss core
Author: Eamon
Posted: 2018-11-07 10:04

Hi Jane, 

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

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


< Previous
Error Message
  Next
issue with core install
>