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