Compare commits

...

2 Commits

Author SHA1 Message Date
yumoqing
5b11a21b50 Merge branch 'main' of git.kaiyuancloud.cn:yumoqing/shtools 2024-11-20 12:24:37 +08:00
yumoqing
9d967b1dff bugfix 2024-11-20 12:24:17 +08:00

5
dbdump.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/bash
date=$(date +%Y-%m-%d)
mysqldump -utest -ptest123 sage > ~/db/sage-${date}.sql
find ~/db -name "*.sql" -mtime +1 -print|awk '{print("rm -f", $1)}'| sh