From f80b3e07881dea47597e624c7340a4ef30d72dce Mon Sep 17 00:00:00 2001 From: Ee Durbin Date: Thu, 15 Aug 2024 07:48:04 -0400 Subject: [PATCH] update exclude syntaxt for rdiff-backup 2.2.6 (#470) --- salt/backup/client/init.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/backup/client/init.sls b/salt/backup/client/init.sls index edaf2584..75da1929 100644 --- a/salt/backup/client/init.sls +++ b/salt/backup/client/init.sls @@ -39,7 +39,7 @@ include: - context: pre_script: '{{ config.get('pre_script', ":") }}' {% if grains["oscodename"] == "noble" -%} - remote_command: '/usr/bin/rdiff-backup --terminal-verbosity 1 {%- for exclude in config.get('exclude', []) %} --exclude {{ exclude }} {%- endfor %} --remote-schema "ssh -i /etc/backup/.ssh/id_rsa_{{ backup }} -C %s rdiff-backup server" backup --no-eas {{ config['source_directory'] }} {{ config['target_user'] }}@{{ config['target_host'] }}::{{ config['target_directory'] }}' + remote_command: '/usr/bin/rdiff-backup --terminal-verbosity 1 --remote-schema "ssh -i /etc/backup/.ssh/id_rsa_{{ backup }} -C %s rdiff-backup server" backup --no-eas {%- for exclude in config.get('exclude', []) %} --exclude {{ exclude }} {%- endfor %} {{ config['source_directory'] }} {{ config['target_user'] }}@{{ config['target_host'] }}::{{ config['target_directory'] }}' {% else %} remote_command: '/usr/bin/rdiff-backup --terminal-verbosity 1 {%- for exclude in config.get('exclude', []) %} --exclude {{ exclude }} {%- endfor %} --no-eas --remote-schema "ssh -i /etc/backup/.ssh/id_rsa_{{ backup }} -C %s rdiff-backup server" {{ config['source_directory'] }} {{ config['target_user'] }}@{{ config['target_host'] }}::{{ config['target_directory'] }}' {% endif %}