From 11a1d6cfea014c7b572a5f944cc6ff7bf31ebea0 Mon Sep 17 00:00:00 2001 From: Sixu Hu Date: Mon, 29 Jan 2024 18:05:55 +0800 Subject: [PATCH] updated examples to demonstrate new flag usage --- rsync-tmsched-conf-example.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rsync-tmsched-conf-example.sh b/rsync-tmsched-conf-example.sh index 96df639..4987c4c 100644 --- a/rsync-tmsched-conf-example.sh +++ b/rsync-tmsched-conf-example.sh @@ -88,6 +88,8 @@ declare -A conf_Server_DST1=( [dst]="$BR_DST1/Server-root" # Specify other options like this ['--id-rsa']="$HOME/.ssh/id_rsa" + # Dump database before backup. Use 'true' at the end to ignore dump errors + ['--pre-sync-hook']='mysqldump -u root -pPASSWORD db_name > db.sql; true;' ) declare -a excl_Server_DST1=( # Home directories