From 66cad6496ae83897faada97cf884213b3b8de45f Mon Sep 17 00:00:00 2001 From: Ee Durbin Date: Thu, 15 Aug 2024 07:46:46 -0400 Subject: [PATCH] update exclude syntaxt for rdiff-backup 2.2.6 --- 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 %}