12 lines
406 B
Plaintext
12 lines
406 B
Plaintext
|
#!/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}
|
|||
|
|
|||
|
|