mirror of
https://github.com/krislamo/puppet-rsnapshot
synced 2025-09-07 21:59:29 +00:00
fail if backup_defaults is false and no backups specified for a host (user error)
This commit is contained in:
@@ -128,7 +128,9 @@ linux_lvm_mountpath <%= @linux_lvm_mountpath %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
<% @backups.each_pair do |source, dest| -%>
|
||||
<% if @backup_user != '' -%>
|
||||
<% if @host == 'localhost' -%>
|
||||
backup <%= source %> <%=dest%>
|
||||
<% elsif @backup_user != '' -%>
|
||||
backup <%= @backup_user %>@<%=@host%>:<%= source %> <%=dest%>
|
||||
<% else -%>
|
||||
backup <%=@host%>:<%= source %> <%=dest%>
|
||||
|
Reference in New Issue
Block a user