]> git.llucax.com Git - software/bacap.git/commitdiff
Print the backup start time for each host
authorRodrigo Campos <rodrigo@sdfg.com.ar>
Thu, 25 Nov 2010 14:07:24 +0000 (11:07 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Thu, 25 Nov 2010 14:44:18 +0000 (11:44 -0300)
This can be useful when the backup takes a lot more time that the
expected to finish and we don't know which host(s) caused the long
delay.

Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
bacap

diff --git a/bacap b/bacap
index c7cdeab5d2c6b40dba61418e5bdb725d2b1a4cf4..1f6f9cbced35d621c7e78f1fe4eb4015b7d8eff2 100755 (executable)
--- a/bacap
+++ b/bacap
@@ -114,7 +114,7 @@ do
        current_dir="$host_backup_path/`readlink \"$current_link\"`"
        extra_flags=
        plog "-----------------------------------------------------------------"
        current_dir="$host_backup_path/`readlink \"$current_link\"`"
        extra_flags=
        plog "-----------------------------------------------------------------"
-       plog "Backup for host $host"
+       plog "Backup for host $host started at `date '+%Y-%m-%d %H:%M:%S'`"
        plog "-----------------------------------------------------------------"
        plog "Source:      $src"
        plog "Destination: $dst"
        plog "-----------------------------------------------------------------"
        plog "Source:      $src"
        plog "Destination: $dst"