diff options
author | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-04-02 15:38:14 +0000 |
---|---|---|
committer | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-04-02 15:38:14 +0000 |
commit | e1e3cb278078d464e0463623cb1563cb650585c7 (patch) | |
tree | 9f2faced30810867a29f32df6b08cb8d2c791c57 | |
parent | 3d2311f92d80c1ea661f826baed60e8404cdb1cd (diff) | |
download | draksnapshot-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
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | draksnapshot-config | 5 |
2 files changed, 6 insertions, 0 deletions
@@ -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)); |