summaryrefslogtreecommitdiffstats
path: root/draksnapshot-config
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-04-02 15:38:14 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-04-02 15:38:14 +0000
commite1e3cb278078d464e0463623cb1563cb650585c7 (patch)
tree9f2faced30810867a29f32df6b08cb8d2c791c57 /draksnapshot-config
parent3d2311f92d80c1ea661f826baed60e8404cdb1cd (diff)
downloaddraksnapshot-e1e3cb278078d464e0463623cb1563cb650585c7.tar
draksnapshot-e1e3cb278078d464e0463623cb1563cb650585c7.tar.gz
draksnapshot-e1e3cb278078d464e0463623cb1563cb650585c7.tar.bz2
draksnapshot-e1e3cb278078d464e0463623cb1563cb650585c7.tar.xz
draksnapshot-e1e3cb278078d464e0463623cb1563cb650585c7.zip
use ad hoc config if "backup the whole system" is selected
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@241751 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
Diffstat (limited to 'draksnapshot-config')
-rwxr-xr-xdraksnapshot-config5
1 files changed, 5 insertions, 0 deletions
diff --git a/draksnapshot-config b/draksnapshot-config
index 790c811..c2a7a7f 100755
--- a/draksnapshot-config
+++ b/draksnapshot-config
@@ -263,6 +263,11 @@ sub save() {
if_($val, join("\t", 'interval', $_, $val));
} @ordered_intervals);
+ if (!$box->get('sensitive')) { # Mandriva defaults
+ @{$backup_list->{data}} = '/'; #qw(/bin /boot /etc /home /lib /lib64 /opt);
+ @{$exclude_list->{data}} = qw(/media /mnt /proc /sys /tmp /var/run /var/tmp *~);
+ }
+
save_keyword('backup', map { join("\t", 'backup', @$_[0], 'localhost/') } @{$backup_list->{data}});
save_keyword('exclude', map { join("\t", 'exclude', @$_[0]) } @{$exclude_list->{data}});
save_keyword('snapshot_root', join("\t", 'snapshot_root', $where->get_text));