Skip to content
Snippets Groups Projects
Commit 3f138368 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add support for db-dirarchive

parent e3dacf22
Branches
No related tags found
1 merge request!4add support dir-dbarchive
...@@ -122,6 +122,7 @@ function j_getDirs2Backup(){ ...@@ -122,6 +122,7 @@ function j_getDirs2Backup(){
STORAGE_SAMBASHARES=`_j_getvar ${STORAGEFILE} "sambashares"` STORAGE_SAMBASHARES=`_j_getvar ${STORAGEFILE} "sambashares"`
_j_getvar ${DIRFILE} dir-localdumps _j_getvar ${DIRFILE} dir-localdumps
_j_getvar ${DIRFILE} dir-dbarchive
_j_getvar ${DIRFILE} include _j_getvar ${DIRFILE} include
# get dirs of filesets, i.e. # get dirs of filesets, i.e.
......
...@@ -21,9 +21,12 @@ ...@@ -21,9 +21,12 @@
# each datbase service has its own subdir there # each datbase service has its own subdir there
# this entry is mapped to BACKUP_TARGETDIR in "localdump.sh" # this entry is mapped to BACKUP_TARGETDIR in "localdump.sh"
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
dir-localdumps = /var/_unibe_iml/backup dir-localdumps = /var/localdumps/backup
keep-days = 7 keep-days = 7
# archive databases (to keep deleted schemes or databases that
# are not backupped anymore; couchdb2 feature)
dir-dbarchive = /var/localdumps/archive
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# directory list to transfer # directory list to transfer
......
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
PASSPHRASE=`_j_getvar ${STORAGEFILE} "passphrase"` PASSPHRASE=`_j_getvar ${STORAGEFILE} "passphrase"`
STORAGE_REGISTER=`_j_getvar ${STORAGEFILE} "storage-register"` STORAGE_REGISTER=`_j_getvar ${STORAGEFILE} "storage-register"`
typeset -i TIMER_TRANSFER_START=`date +%s`
# check # check
if [ -z "$STORAGE_BIN" ]; then if [ -z "$STORAGE_BIN" ]; then
...@@ -221,7 +222,7 @@ ...@@ -221,7 +222,7 @@
h2 "`date` PRE transfer tasks" h2 "`date` PRE transfer tasks"
t_backupDoPreTasks t_backupDoPreTasks
echo
# -------------------------------------------------------------------------------- # --------------------------------------------------------------------------------
# ----- START BACKUPS # ----- START BACKUPS
...@@ -344,7 +345,8 @@ ...@@ -344,7 +345,8 @@
fi fi
color reset color reset
echo | tee -a $transferlog echo | tee -a $transferlog
echo `date` TRANSFER DONE | tee -a $transferlog typeset -i TIMER_TRANSFER=`date +%s`-$TIMER_TRANSFER_START
echo `date` TRANSFER DONE in $TIMER_TRANSFER sec | tee -a $transferlog
ls -l $transferlog ls -l $transferlog
exit $rc exit $rc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment