Index: /branches/rel_ag_9_4_5/tools/webui_localdb_file.c
===================================================================
--- /branches/rel_ag_9_4_5/tools/webui_localdb_file.c	(revision 20619)
+++ /branches/rel_ag_9_4_5/tools/webui_localdb_file.c	(working copy)
@@ -134,11 +134,11 @@
 			if (argc == 5) {
 			// if just export one theme, just zip all subpages
 				snprintf(cmd_str_tmp, sizeof(cmd_str_tmp), "cd %s/%s/%s", PORTAL_THEME_DIR, argv[2], argv[3]);
-				snprintf(cmd_str, sizeof(cmd_str), "%s && zip -r %s *", cmd_str_tmp, path_dst);
+				snprintf(cmd_str, sizeof(cmd_str), "%s && zip -r -y %s * -x '*.zip'", cmd_str_tmp, path_dst);
 			} else if (argc > 5) {
 			// if just export more than one theme, use theme name as parent directory which includes associated subpages
 				snprintf(cmd_str_tmp, sizeof(cmd_str_tmp), "cd %s/%s", PORTAL_THEME_DIR, argv[2]);
-				snprintf(cmd_str, sizeof(cmd_str), "%s && zip -r %s %s", cmd_str_tmp, path_dst, files);
+				snprintf(cmd_str, sizeof(cmd_str), "%s && zip -r -y %s %s -x '*.zip'", cmd_str_tmp, path_dst, files);
 			}
 			break;
 		case 'r' :
