Skip to content
Snippets Groups Projects

Version 2

Merged Hahn Axel (hahn) requested to merge version-2 into master

Files

+ 13
13
@@ -86,14 +86,14 @@
# --------------------------------------------------------------------------------
# pre backup actions
# uses global vars from ../../transfer.sh
function t_cmdPre(){
function t_backupDoPreTasks(){
# echo TODO PRE actions before starting transfer
}
# post backup actions
# uses global vars from ../../transfer.sh
function t_cmdPost(){
function t_backupDoPostTasks(){
# echo TODO POST actions after all transfers
}
@@ -103,26 +103,26 @@
# get target url/ directory
# param string directory to backup
function t_sd_getTarget(){
function t_backupDirGetTarget(){
# directory based target
j_getFullTarget "$1"
# for host based backup target - remove param:
# j_getFullTarget ""
}
function t_sd_getCmdBackup(){
# echo duplicity ${sBackupParams} ${mydir} ${sTarget}
function t_backupDirGetCmdBackup(){
# echo duplicity ${ARGS_BACKUP} ${mydir} ${sTarget}
}
# pre backup actions
# uses global vars from ../../transfer.sh
function t_sd_cmdPre(){
function t_backupDirDoPreTasks(){
}
# post backup actions
# uses global vars from ../../transfer.sh
function t_sd_cmdPost(){
function t_backupDirDoPostTasks(){
}
# --------------------------------------------------------------------------------
@@ -132,15 +132,15 @@
# show stored volumes on backup repository
# used in restore; directory param is checked before
# param string name of backup dir, i.e. /etc
function t_cmdShowVolumes(){
function t_restoreDoShowVolumes(){
}
# select a snapshot to restore from
function t_restoreSelect(){
function t_restoreDoSelect(){
local _selid=
echo "--- Existing snapshots:"
color cmd
t_cmdShowVolumes
t_restoreDoShowVolumes
color reset
showPrompt "ID of the snapshot or \"latest\" to restore from [${RESTORE_ITEM}] >"
read _selid
@@ -148,7 +148,7 @@
RESTORE_ITEM=${_selid}
test "$RESTORE_ITEM" = "latest" && RESTORE_ITEMINFO="automatic value"
test "$RESTORE_ITEM" = "latest" || RESTORE_ITEMINFO=$( t_cmdShowVolumes | grep "^${RESTORE_ITEM} " | awk '{ print $2 " " $3} ' )
test "$RESTORE_ITEM" = "latest" || RESTORE_ITEMINFO=$( t_restoreDoShowVolumes | grep "^${RESTORE_ITEM} " | awk '{ print $2 " " $3} ' )
if [ -z "${RESTORE_ITEMINFO}" ]; then
color error
@@ -161,7 +161,7 @@
}
# set a filter to reduce count of files to restore
function t_restoreFilter(){
function t_restoreDoSetIncludeFilter(){
local _inc=
echo "You can enter ..."
echo " - a single directory name anywhere in the folderstructure"
@@ -176,7 +176,7 @@
# show stored volumes on backup repository
# used in restore; directory param is checked before
# param string name of backup dir, i.e. /etc
function t_cmdRestore(){
function t_restoreDoRestore(){
echo ""
}
Loading