summaryrefslogtreecommitdiffstats
path: root/bin/bakdbdr
diff options
context:
space:
mode:
Diffstat (limited to 'bin/bakdbdr')
-rwxr-xr-xbin/bakdbdr11
1 files changed, 6 insertions, 5 deletions
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
}