extern_interface/logqueueconfig/backup

12 lines
406 B
Plaintext
Raw Permalink Normal View History

2024-11-28 08:31:00 +00:00
#!/bin/sh
#rm -f *.so *.o
CUR=$(basename `pwd`)
echo $CUR
mkdir -p ../../_backup
tar --exclude=*.so --exclude=*.a --exclude=*.o --exclude=*.d --exclude=./.vs --exclude=*.git* --exclude=*.swp -czvf ../../_backup/${CUR}-`date +"%Y.%m.%d-%H.%M"`.tar.gz ../${CUR}/*
#tar -czvf ../_backup/${CUR}-`date +"%Y.%m.%d-%H.%M"`.tar.gz ../${CUR}
curDate=$(date +"%Y.%m.%d %H:%M:%S")
echo backup done@${curDate}