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