aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@koumbit.org>2015-04-22 12:08:56 -0400
committerAntoine Beaupré <anarcat@koumbit.org>2015-04-22 12:08:56 -0400
commitf234030025d20c80060308bd7ce5753dfcbac4e2 (patch)
treeec44c356bf0c9e28e165f5da29de63b2e6e98f7b
parenta52fa9dc3db79627e1654766a752db5c62ccf499 (diff)
downloadpuppet-backupninja-f234030025d20c80060308bd7ce5753dfcbac4e2.tar.gz
puppet-backupninja-f234030025d20c80060308bd7ce5753dfcbac4e2.tar.bz2
complete multi-backup support by using the name in the subdirectory
-rw-r--r--README14
-rw-r--r--manifests/rdiff.pp2
2 files changed, 15 insertions, 1 deletions
diff --git a/README b/README
index a839193..94ad952 100644
--- a/README
+++ b/README
@@ -20,6 +20,20 @@ doubled as the home for the user that was created. This caused
problems with rdiff-backup because of dot files and other things which
were not part of any rdiff-backup.
+The rdiff resource name is now used as the subdirectory where rdiff
+backups are sent. This was previously hardcoded to "rdiff-backup", but
+in order to support multiple rdiff backups per host, we now use the
+resource name. So if you were using the following resource:
+
+ backupninja::rdiff { 'main': }
+
+You will want to use the following resource:
+
+ backupninja::rdiff { 'rdiff-backup': }
+ file { '/etc/backup.d/90_main.rdiff': ensure => absent; }
+
+Otherwise your backups may be duplicated!
+
Getting started
---------------
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp
index 6c692c7..999eb5d 100644
--- a/manifests/rdiff.pp
+++ b/manifests/rdiff.pp
@@ -30,7 +30,7 @@ define backupninja::rdiff(
{
include backupninja::client::rdiff_backup
- $directory = "$home/rdiff-backup/"
+ $directory = "$home/$name/"
case $type {
'remote': {