wuwei
2025-06-13 e8c9c0ca7e6c307243c158fd529c59c5a3717f2f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
# 端口配置-保存
#
export PATH=/sbin:/usr/sbin:$PATH
echo -en "Content-type: text/html; charset=utf-8\n\n"
#*****************************************************
source ../bin/env.sh
jsoner="../bin/jsoner"
 
date=`date  '+%Y%m%d'`
 
 
cd /work/data/
 
rm userlib.tgz
 
rm userlib-bak* -fr
 
dir="userlib-bak"
 
mkdir $dir
 
cp /userlib/* $dir
 
cp /work/data/svrlib/* $dir
 
cp /work/data/model/* $dir
 
tar -zcf userlib.tgz $dir
 
if [ -f "userlib.tgz" ]
then
    echo "{\"code\":\"success\"}"
else
    echo "{\"code\":\"error\"}"
fi