File tree Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 38
38
class rsnapshot::client (
39
39
$server,
40
40
$directories = {},
41
+ $includes = {},
42
+ $excludes = {},
43
+ $include_files = {},
44
+ $exclude_files = {},
41
45
$user = $rsnapshot::params::client_user ,
42
46
$remote_user = $rsnapshot::params::server_user ,
43
47
$backup_hourly_cron = $rsnapshot::params::backup_hourly_cron ,
89
93
server => $server ,
90
94
user => $user ,
91
95
directories => $directories ,
96
+ includes => $includes ,
97
+ excludes => $excludes ,
98
+ include_files => $include_files ,
99
+ exclude_files => $exclude_files ,
92
100
backup_hourly_cron => $backup_hourly_cron ,
93
101
backup_time_minute => $backup_time_minute ,
94
102
backup_time_hour => $backup_time_hour ,
Original file line number Diff line number Diff line change 5
5
$backup_user = undef ,
6
6
$directories = {},
7
7
$lock_path = undef ,
8
+ $includes = {},
9
+ $excludes = {},
10
+ $include_files = {},
11
+ $exclude_files = {},
12
+ $config_path = undef ,
13
+ $log_path = undef ,
14
+ $lock_path = undef ,
8
15
$remote_user = undef ,
9
16
$no_create_root = undef ,
10
17
$verbose = undef ,
Original file line number Diff line number Diff line change @@ -68,6 +68,34 @@ retain monthly <%= @retain_monthly %>
68
68
<% end -%>
69
69
70
70
71
+ ##############################
72
+ ### INCLUDE / EXCUDE FILES ###
73
+ ##############################
74
+
75
+ <% @includes.each do |value| -%>
76
+ <%- if value.to_s != 'undef' -%>
77
+ include <%= value %>
78
+ <%- end -%>
79
+ <% end -%>
80
+
81
+ <% @excludes.each do |value| -%>
82
+ <%- if value.to_s != 'undef' -%>
83
+ exclude <%= value %>
84
+ <%- end -%>
85
+ <% end -%>
86
+
87
+ <% @include_files.each do |value| -%>
88
+ <%- if value.to_s != 'undef' -%>
89
+ include <%= value %>
90
+ <%- end -%>
91
+ <% end -%>
92
+
93
+ <% @exclude_files.each do |value| -%>
94
+ <%- if value.to_s != 'undef' -%>
95
+ exclude <%= value %>
96
+ <%- end -%>
97
+ <% end -%>
98
+
71
99
###############################
72
100
### BACKUP POINTS / SCRIPTS ###
73
101
###############################
You can’t perform that action at this time.
0 commit comments