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

rdiff: log execution steps

parent b93af54b
No related branches found
No related tags found
1 merge request!46Add a testsuite
...@@ -98,6 +98,7 @@ getconf keep 60 ...@@ -98,6 +98,7 @@ getconf keep 60
getconf include getconf include
getconf exclude getconf exclude
setsection dest setsection dest
getconf directory; destdir=$directory getconf directory; destdir=$directory
# strip trailing / # strip trailing /
...@@ -179,6 +180,7 @@ if [ "$keep" != yes ]; then ...@@ -179,6 +180,7 @@ if [ "$keep" != yes ]; then
fi fi
removestr="${removestr}${destdir}/${label}"; removestr="${removestr}${destdir}/${label}";
debug "executing rdiff-backup --remove-older-than"
debug "$removestr" debug "$removestr"
if [ $test = 0 ]; then if [ $test = 0 ]; then
output="`su -c "$removestr" 2>&1`" output="`su -c "$removestr" 2>&1`"
...@@ -251,6 +253,7 @@ set +o noglob ...@@ -251,6 +253,7 @@ set +o noglob
# include client-part and server-part # include client-part and server-part
execstr="${execstr}$execstr_sourcepart $execstr_destpart" execstr="${execstr}$execstr_sourcepart $execstr_destpart"
debug "executing rdiff-backup"
debug "$nice $execstr" debug "$nice $execstr"
if [ $test = 0 ]; then if [ $test = 0 ]; then
output=`$nice su -c "$execstr" 2>&1` output=`$nice su -c "$execstr" 2>&1`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment