linux 备份 文件+sql

时间:2023-12-20 13:55:14

sql

1
2
3
rm -f /bak/bak.sql
mysqldump --databases nl -uroot -p413121 > /bak/bak.sql
curl http://localhost/mail.php?url=%2Fbak%2Fbak.sql

文件

1
2
3
4
5
rm -f /bak/www.zip
rm -rf /bak/default
cp -r /alidata/www/default /bak
zip -r /bak/www.zip /bak/default
curl http://localhost/mail.php?url=%2Fbak%2fwww.zip