Hello,

This is a patch for https://fedorahosted.org/freeipa/ticket/4331
It's a one liner that just adds an exclude to the tar command to ignore the
/var/lib/ipa/backup folder.

Thanks,

Gabe
From f1e54b57cfd07f370bc7143cfe14753f2ee145a9 Mon Sep 17 00:00:00 2001
From: Gabe <redhatri...@gmail.com>
Date: Wed, 28 May 2014 17:16:04 -0600
Subject: [PATCH] ipa recursively adds old backups

- Added exclude for the ipa backup folder to the files tar

https://fedorahosted.org/freeipa/ticket/4331
---
 ipaserver/install/ipa_backup.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ipaserver/install/ipa_backup.py b/ipaserver/install/ipa_backup.py
index 37b7a2569bd30dc776fcb6f1e91469a1f17a7b66..1da272fe9761416e236555aa8358f746da09ca24 100644
--- a/ipaserver/install/ipa_backup.py
+++ b/ipaserver/install/ipa_backup.py
@@ -460,6 +460,7 @@ class Backup(admintool.AdminTool):
 
         self.log.info("Backing up files")
         args = ['tar',
+                '--exclude=/var/lib/ipa/backup',
                 '--xattrs',
                 '--selinux',
                 '-czf',
-- 
1.9.3

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to