Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
chris
puppet-backupninja
Commits
3eed9efd
Commit
3eed9efd
authored
Aug 16, 2010
by
Silvio Rhatto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing comments
parent
06412e03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
manifests/rsync.pp
manifests/rsync.pp
+6
-8
No files found.
manifests/rsync.pp
View file @
3eed9efd
# Run rsync as part of a backupninja run.
# Based on backupninja::rdiff
# Right now just local origin and remote destination is supported.
define
backupninja::rsync
(
$order
=
90
,
$ensure
=
present
,
$user
=
false
,
$home
=
false
,
$host
=
false
,
...
...
@@ -9,34 +8,33 @@ define backupninja::rsync(
$home
=
false
,
$backupkeytype
=
"rsa"
,
$backupkeystore
=
false
,
$extras
=
false
,
$nagios2_description
=
'backups'
,
$subfolder
=
'rsync'
,
# 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
,
# source
$from
=
'local'
,
$exclude_vserver
=
false
,
$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*"
],
# dest
$dest
=
'remote'
,
$testconnect
=
false
,
$protocol
=
false
,
$ssh
=
false
,
$port
=
false
,
$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
,
# services
$initscripts
=
false
,
$service
=
false
,
# system
$rm
=
false
,
$cp
=
false
,
$touch
=
false
,
$mv
=
false
,
$fsck
=
false
)
{
include
backupninja::client::rsync
# Right now just local origin and remote destination is supported.
$from
=
local
$dest
=
remote
case
$dest
{
'remote'
:
{
case
$host
{
false
:
{
err
(
"need to define a host for remote backups!"
)
}
}
...
...
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