diff --git a/templates/rsnapshot.erb b/templates/rsnapshot.erb index f6d6868..bc14de7 100644 --- a/templates/rsnapshot.erb +++ b/templates/rsnapshot.erb @@ -85,12 +85,12 @@ du_args <%= @du_args %> <% if @one_fs != '' -%> one_fs <%= @one_fs_num %> <% end -%> -<% if @include != '' -%> +<% if not @real_include.is_empty? -%> <% if @include_file != '' -%> include_file <%= @include_file %> <% end -%> <% end -%> -<% if @exclude != '' -%> +<% if not @real_exclude.is_empty? -%> <% if @exclude_file != '' -%> exclude_file <%= @exclude_file %> <% end -%>