From 3bad66143257393768ea31eb2500168ce6b478d8 Mon Sep 17 00:00:00 2001 From: Pavel Dmitriev Date: Wed, 21 Jun 2023 11:11:54 +0300 Subject: [PATCH] added rdiff task closed #4 --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 29e6337..88d7383 100755 --- a/backup.sh +++ b/backup.sh @@ -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