diff options
author | P. J. McDermott <pj@pehjota.net> | 2018-05-24 18:08:59 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2018-05-24 18:08:59 (EDT) |
commit | c5213afabcf9a4275bdd3c091a1e03e5fffb2164 (patch) | |
tree | 11b80eacc4eaaee4e9b66024814131c990ee07b5 | |
parent | ffb63270117c78155a35cad8889946db17cbb473 (diff) | |
download | partsdb-backup-master.zip partsdb-backup-master.tar.gz partsdb-backup-master.tar.bz2 |
-rwxr-xr-x | bin/bakdbdr | 11 |
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 } |