From 51a175634d24eec42ad5a7cbe23660b42a63470c Mon Sep 17 00:00:00 2001 From: Joel Andres Granados Date: Thu, 7 Aug 2008 19:02:36 +0200 Subject: Create a new backup directory every time, unless the user tells us otherwise. Use tempfile to create safe backup directories. User should define backup.fullpath if he wants to override the default behaviour. User can also choose the directory where the backup directory goes. --- pyfirstaidkit/configuration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pyfirstaidkit/configuration.py') diff --git a/pyfirstaidkit/configuration.py b/pyfirstaidkit/configuration.py index 499c0a8..b25bf1b 100644 --- a/pyfirstaidkit/configuration.py +++ b/pyfirstaidkit/configuration.py @@ -44,7 +44,8 @@ def createDefaultConfig(config): config.log.fallbacks = "firstaidkit.log,/tmp/firstaidkit.log,/dev/null" config.plugin.disabled = "" config.backup.method = "file" - config.backup.path = "/tmp/firstaidkitbackup" + config.backup.rootpath = "/tmp/fakbackup" + config.backup.fullpath = "" # Setup a sane default root directory. if os.path.isdir("/mnt/sysimage"): -- cgit