summaryrefslogtreecommitdiffstats
path: root/draksnapshot-config
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-05-09 14:51:01 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-05-09 14:51:01 +0000
commit2ba14ef4d49b0cd727d23f350e2eade3f4c011a9 (patch)
treea224e4fbb6d1cd86b9813f5d29f511c5a7d722f6 /draksnapshot-config
parenta4b386cefb168b34d77ef4aa0e9497a37f6356e2 (diff)
downloaddraksnapshot-2ba14ef4d49b0cd727d23f350e2eade3f4c011a9.tar
draksnapshot-2ba14ef4d49b0cd727d23f350e2eade3f4c011a9.tar.gz
draksnapshot-2ba14ef4d49b0cd727d23f350e2eade3f4c011a9.tar.bz2
draksnapshot-2ba14ef4d49b0cd727d23f350e2eade3f4c011a9.tar.xz
draksnapshot-2ba14ef4d49b0cd727d23f350e2eade3f4c011a9.zip
(save) exclude snapshot point from being backuped (thus preventing to
recursively backup the backup directory) (#39801) git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@242424 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
Diffstat (limited to 'draksnapshot-config')
-rwxr-xr-xdraksnapshot-config3
1 files changed, 2 insertions, 1 deletions
diff --git a/draksnapshot-config b/draksnapshot-config
index f749c52..72aab47 100755
--- a/draksnapshot-config
+++ b/draksnapshot-config
@@ -271,7 +271,8 @@ sub save() {
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('exclude', map { join("\t", 'exclude', $_) }
+ uniq($where2snapshot, map { @$_[0] } @{$exclude_list->{data}}));
save_keyword('snapshot_root', join("\t", 'snapshot_root', $where2snapshot));
generate_cron_entry();
}