Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
puppet-backupninja
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chris
puppet-backupninja
Commits
06412e03
Commit
06412e03
authored
Aug 16, 2010
by
Silvio Rhatto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Right now just local origin and remote destination is supported (2)
parent
c5220c6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
manifests/rsync.pp
manifests/rsync.pp
+12
-10
templates/rsync.conf.erb
templates/rsync.conf.erb
+1
-1
No files found.
manifests/rsync.pp
View file @
06412e03
...
...
@@ -9,29 +9,31 @@ define backupninja::rsync(
$home
=
false
,
$backupkeytype
=
"rsa"
,
$backupkeystore
=
false
,
$extras
=
false
,
$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
,
$mountpoint
=
false
,
$backupdir
=
false
,
$format
=
false
,
$days
=
'5'
,
$keepdaily
=
false
,
$keepweekly
=
false
,
$keepmonthly
=
false
,
$lockfile
=
false
,
$nicelevel
=
0
,
$enable_mv_timestamp_bug
=
false
,
$tmp
=
false
,
$multiconnection
=
false
,
$from
=
'local'
,
$rsync
=
false
,
$rsync_options
=
false
,
$testconnect
=
false
,
$protocol
=
false
,
$ssh
=
false
,
$port
=
false
,
$bandwidthlimit
=
false
,
$remote_rsync
=
false
,
$id_file
=
false
,
$batch
=
false
,
$filelist
=
false
,
$filelistbase
=
false
,
# source
$from
=
'local'
,
$exclude_vserver
=
false
,
$exclude
=
[
"/home/*/.gnupg"
,
"/home/*/.local/share/Trash"
,
"/home/*/.Trash"
,
"/home/*/.thumbnails"
,
"/home/*/.beagle"
,
"/home/*/.aMule"
,
"/home/*/gtk-gnutella-downloads"
],
$include
=
[
"/var/spool/cron/crontabs"
,
"/var/backups"
,
"/etc"
,
"/root"
,
"/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
...
...
templates/rsync.conf.erb
View file @
06412e03
...
...
@@ -12,7 +12,7 @@
end
-%>
[source]
<%-
%w{from
testconnect include exclude ssh protocol rsync rssync_options exclude_vserver, numericids, compress, bandwidthlimit, remote_rsync, id_file, batch, batchbase, filelist, filelistbas
e}
.
each
do
|
v
|
<%-
%w{from
include exclud
e}
.
each
do
|
v
|
if
has_variable?
(
v
)
and
instance_variable_get
(
"@
#{
v
}
"
).
to_s
!=
"false"
-%>
<%=
v
+
' = '
+
instance_variable_get
(
"@
#{
v
}
"
).
to_s
%>
<%-
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment