diff options
author | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-05-09 14:47:45 +0000 |
---|---|---|
committer | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-05-09 14:47:45 +0000 |
commit | a4b386cefb168b34d77ef4aa0e9497a37f6356e2 (patch) | |
tree | db1a7cc258679fa56910a5255e4362121d8f4d42 /draksnapshot-config | |
parent | 94893206a182df97c844935f8a5bfc297f6e10a3 (diff) | |
download | draksnapshot-a4b386cefb168b34d77ef4aa0e9497a37f6356e2.tar draksnapshot-a4b386cefb168b34d77ef4aa0e9497a37f6356e2.tar.gz draksnapshot-a4b386cefb168b34d77ef4aa0e9497a37f6356e2.tar.bz2 draksnapshot-a4b386cefb168b34d77ef4aa0e9497a37f6356e2.tar.xz draksnapshot-a4b386cefb168b34d77ef4aa0e9497a37f6356e2.zip |
(save) factorize snapshot target (needed for next commit)
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@242423 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
Diffstat (limited to 'draksnapshot-config')
-rwxr-xr-x | draksnapshot-config | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/draksnapshot-config b/draksnapshot-config index c2a7a7f..f749c52 100755 --- a/draksnapshot-config +++ b/draksnapshot-config @@ -268,9 +268,11 @@ sub save() { @{$exclude_list->{data}} = qw(/media /mnt /proc /sys /tmp /var/run /var/tmp *~); } + my $where2snapshot = $where->get_text; + 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)); + save_keyword('snapshot_root', join("\t", 'snapshot_root', $where2snapshot)); generate_cron_entry(); } |