summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xdraksnapshot-config5
2 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 56df950..f72c2b7 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@
o disable advanced settings if "backup the whole system" is selected
o hide list under an "Advanced" expander
o set 755 perms on cron entry (#39699)
+ o use ad hoc config if "backup the whole system" is selected
o use spin buttons for intervals
- draksnapshot-restore wasn't installed
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));