added rdiff task closed #4

This commit is contained in:
Pavel Dmitriev 2023-06-21 11:11:54 +03:00
parent 7f94a10a0e
commit 3bad661432
1 changed files with 2 additions and 2 deletions

View File

@ -55,10 +55,10 @@ do
if [[ -f "${prefix}/incremental/${sql_item//:/.}.sql" ]]
then
xsuffix=".diff"
${sqldump_prefix} ${sql_item//:/ } | diff ${prefix}/incremental/${sql_item//:/.}.sql - > ${prefix}/${stamp}/${sql_item//:/.}.sql.diff
${sqldump_prefix} ${sql_item//:/ } | rdiff delta ${prefix}/incremental/${sql_item//:/.}.sql.sign > ${prefix}/${stamp}/${sql_item//:/.}.sql.delta
else
${sqldump_prefix} ${sql_item//:/ } | cat > ${prefix}/${stamp}/${sql_item//:/.}.sql
cp ${prefix}/${stamp}/${sql_item//:/.}.sql ${prefix}/incremental/
rdiff signature ${prefix}/${stamp}/${sql_item//:/.}.sql > ${prefix}/incremental/${sql_item//:/.}.sql.sign
fi
if [ "${do_quet}" == 0 ]
then