Commit 06412e03 authored by Silvio Rhatto's avatar Silvio Rhatto
Browse files

Right now just local origin and remote destination is supported (2)

parent c5220c6e
...@@ -9,29 +9,31 @@ define backupninja::rsync( ...@@ -9,29 +9,31 @@ define backupninja::rsync(
$home = false, $backupkeytype = "rsa", $backupkeystore = false, $extras = false, $home = false, $backupkeytype = "rsa", $backupkeystore = false, $extras = false,
$nagios2_description = 'backups', $subfolder = 'rsync', $nagios2_description = 'backups', $subfolder = 'rsync',
$rm = false, $cp = false, $touch = false, $mv = false, $fsck = false, # general
$log = false, $partition = false, $fscheck = false, $read_only = false, $log = false, $partition = false, $fscheck = false, $read_only = false,
$mountpoint = false, $backupdir = false, $format = false, $days = '5', $mountpoint = false, $backupdir = false, $format = false, $days = '5',
$keepdaily = false, $keepweekly = false, $keepmonthly = false, $lockfile = false, $keepdaily = false, $keepweekly = false, $keepmonthly = false, $lockfile = false,
$nicelevel = 0, $enable_mv_timestamp_bug = false, $tmp = false, $multiconnection = false, $nicelevel = 0, $enable_mv_timestamp_bug = false, $tmp = false, $multiconnection = false,
$from = 'local', $rsync = false, $rsync_options = false, # source
$testconnect = false, $protocol = false, $ssh = false, $port = false, $from = 'local', $exclude_vserver = false,
$bandwidthlimit = false, $remote_rsync = false, $id_file = false,
$batch = false, $filelist = false, $filelistbase = false,
$exclude = [ "/home/*/.gnupg", "/home/*/.local/share/Trash", "/home/*/.Trash", $exclude = [ "/home/*/.gnupg", "/home/*/.local/share/Trash", "/home/*/.Trash",
"/home/*/.thumbnails", "/home/*/.beagle", "/home/*/.aMule", "/home/*/.thumbnails", "/home/*/.beagle", "/home/*/.aMule",
"/home/*/gtk-gnutella-downloads" ], "/home/*/gtk-gnutella-downloads" ],
$include = [ "/var/spool/cron/crontabs", "/var/backups", "/etc", "/root", $include = [ "/var/spool/cron/crontabs", "/var/backups", "/etc", "/root",
"/home", "/usr/local/*bin", "/var/lib/dpkg/status*" ], "/home", "/usr/local/*bin", "/var/lib/dpkg/status*" ],
$exclude_vserver = false, $numericids = false, $compress = false, # dest
$dest = 'remote', $testconnect = false, $protocol = false, $ssh = false, $port = false,
$bandwidthlimit = false, $remote_rsync = false, $id_file = false,
$batch = false, $batchbase = false, $numericids = false, $compress = false,
$fakesuper = false,
$dest = false, $fakesuper = false, $batchname = false, # services
$initscripts = false, $service = false,
$initscripts = false, $service = false) # system
$rm = false, $cp = false, $touch = false, $mv = false, $fsck = false)
{ {
include backupninja::client::rsync include backupninja::client::rsync
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
end -%> end -%>
[source] [source]
<%- %w{from testconnect include exclude ssh protocol rsync rssync_options exclude_vserver, numericids, compress, bandwidthlimit, remote_rsync, id_file, batch, batchbase, filelist, filelistbase}.each do |v| <%- %w{from include exclude}.each do |v|
if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%> if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%>
<%= v + ' = ' + instance_variable_get("@#{v}").to_s %> <%= v + ' = ' + instance_variable_get("@#{v}").to_s %>
<%- <%-
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment