From abd010c51ec65d6bd948a43e5f80eb06fd5688fc Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 29 Jan 2026 14:44:16 +0900 Subject: [PATCH] =?UTF-8?q?backup.sh:=20h=C3=A5ndter=20ekstra=20rsync=20ar?= =?UTF-8?q?gumenter=20per=20vert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backup.sh b/backup.sh index e4b26d6..27f5166 100755 --- a/backup.sh +++ b/backup.sh @@ -268,6 +268,15 @@ for host in "${hosts[@]}"; do "--log-file=${logdir}/${host}.log.$snapshot_date" ) + extra_array_name="${host}_extra_rsync_flags" + if declare -p "$extra_array_name" >/dev/null 2>&1; then + extra_rsync_flags_var="${host}_extra_rsync_flags[@]" + extra_rsync_flags=( "${!extra_rsync_flags_var}" ) + for ef in "${extra_rsync_flags[@]}"; do + command+=( "$ef" ) + done + fi + exclude_array_name="${host}_excludes" if declare -p "$exclude_array_name" >/dev/null 2>&1; then exclude_paths_var="${host}_excludes[@]"