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" ]]
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue