Skip to content
Snippets Groups Projects
Commit 8386cde0 authored by Jérôme Charaoui's avatar Jérôme Charaoui
Browse files

borg: log execution steps

parent dd17ed23
Branches
Tags
1 merge request!46Add a testsuite
...@@ -121,6 +121,7 @@ fi ...@@ -121,6 +121,7 @@ fi
if [ "$init" == "yes" ]; then if [ "$init" == "yes" ]; then
initstr="borg init --encryption=$encryption $execstr_repository" initstr="borg init --encryption=$encryption $execstr_repository"
debug "executing borg init"
debug "$initstr" debug "$initstr"
if [ $test = 0 ]; then if [ $test = 0 ]; then
output="`su -c "$initstr" 2>&1`" output="`su -c "$initstr" 2>&1`"
...@@ -168,6 +169,8 @@ fi ...@@ -168,6 +169,8 @@ fi
# include client-part and server-part # include client-part and server-part
execstr="${execstr} ${excludes} $execstr_repository::$execstr_archive ${includes}" execstr="${execstr} ${excludes} $execstr_repository::$execstr_archive ${includes}"
debug "executing borg create"
debug "$nice $execstr" debug "$nice $execstr"
if [ $test = 0 ]; then if [ $test = 0 ]; then
...@@ -189,6 +192,7 @@ if [ "$prune" == "yes" ]; then ...@@ -189,6 +192,7 @@ if [ "$prune" == "yes" ]; then
prune_options="${prune_options} --keep-within=${keep}" prune_options="${prune_options} --keep-within=${keep}"
fi fi
prunestr="borg prune $prune_options $execstr_repository" prunestr="borg prune $prune_options $execstr_repository"
debug "executing borg prune"
debug "$prunestr" debug "$prunestr"
if [ $test = 0 ]; then if [ $test = 0 ]; then
output="`su -c "$prunestr" 2>&1`" output="`su -c "$prunestr" 2>&1`"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment