added rdiff task closed #4
This commit is contained in:
parent
7f94a10a0e
commit
3bad661432
|
@ -55,10 +55,10 @@ do
|
||||||
if [[ -f "${prefix}/incremental/${sql_item//:/.}.sql" ]]
|
if [[ -f "${prefix}/incremental/${sql_item//:/.}.sql" ]]
|
||||||
then
|
then
|
||||||
xsuffix=".diff"
|
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
|
else
|
||||||
${sqldump_prefix} ${sql_item//:/ } | cat > ${prefix}/${stamp}/${sql_item//:/.}.sql
|
${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
|
fi
|
||||||
if [ "${do_quet}" == 0 ]
|
if [ "${do_quet}" == 0 ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue