From c5213afabcf9a4275bdd3c091a1e03e5fffb2164 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 24 May 2018 18:08:59 -0400 Subject: bin/bakdbdr: Also copy .bakhash file --- diff --git a/bin/bakdbdr b/bin/bakdbdr index 4ece6fa..883a674 100755 --- a/bin/bakdbdr +++ b/bin/bakdbdr @@ -18,11 +18,12 @@ backup() remote_copy() { - local bk_file="${1}" - local remote="${2}" - shift 1 + local db_file="${1}" + local bk_file="${2}" + local remote="${3}" + shift 3 - rsync -a "${bk_file}" "${remote}" + rsync -a "${bk_file}" "${db_file}.bakhash" "${remote}" return 0 } @@ -55,7 +56,7 @@ main() ;; esac - remote_copy "$(backup "${db_file}")" "${remote}" + remote_copy "${db_file}" "$(backup "${db_file}")" "${remote}" return 0 } -- cgit v0.9.1