Commits (1)
......@@ -53,6 +53,7 @@ An advanced example might look like:
passphrase => '12345-super-strong',
exclude => [ '/proc', '/sys', '/var/lib/libvirt/images', '/mnt' ],
prune => true,
compression => 'lzma,6',
daily => 7,
weekly => 4,
monthly => 0,
......@@ -164,6 +165,16 @@ Using this parameter will prune your backups at the rate set by the `daily`,
Default value: `true`.
#### `compression`
Optional.
Data type: String.
This will set the compression on the backups.
Default value: `auto`.
#### `daily`
Optional.
......
......@@ -5,6 +5,7 @@ define borg::backup (
Variant[String, Undef] $passphrase = undef,
Array $exclude = [ '/proc', '/sys', '/run' ],
Boolean $prune = true,
String $compression = 'auto',
Integer $daily = 7,
Integer $weekly = 4,
Integer $monthly = 6,
......@@ -28,6 +29,7 @@ define borg::backup (
'passphrase' => $passphrase,
'exclude' => $exclude,
'prune' => $prune,
'compression' => $compression,
'daily' => $daily,
'weekly' => $weekly,
'monthly' => $monthly,
......
{
"name": "baldurmen-borg",
"version": "1.0.4",
"version": "1.1.1",
"author": "Louis-Philippe Véronneau",
"summary": "Simple puppet module to configure backups with borg.",
"license": "GPL-3.0",
......
......@@ -25,7 +25,9 @@ then
<% elsif $type == "borg" { -%>
borg create <%= $archive_path %>::<%= $archive_name %>-`date +%Y-%m-%d` <%=$backup_path %> \
<% } -%>
--compression lzma,9 \
<% if $compression { -%>
--compression <%= $compression %> \
<% } -%>
<% $exclude.each |$item| { -%>
--exclude <%= $item %> \
<% } -%>
......