2 PATH=/bin:/usr/bin:/sbin:/usr/sbin
4 #--------------------------------------
6 #--------------------------------------
8 # not allow to use relative path
9 if [[ $0 == "/"* ]]; then
17 NETWORK_DATA_DIR=/opt/usr/data/network
19 NOWTIME=$(date +"%m-%d-%Y(%T)")
20 FILENAME="network_file_log_$NOWTIME.tar.gz"
22 /usr/bin/rm ${NETWORK_DATA_DIR}/network_file_log_*
23 /usr/bin/tar -czf ${NETWORK_DATA_DIR}/$FILENAME -C ${NETWORK_DATA_DIR} .