Commit 99c2eaca authored by 李飞's avatar 李飞

add log_zip fro api and zd-api

parent 4db4a059
#!/bin/bash
day3=`date -d "-2 day" +%Y-%m-%d`
files=`ls /data/ad-api/logs/history/$day3/*`
for file in ${files}
do
echo $file
tar -zcPf ${file}.tar.gz $file
rm $file
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment