Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能整个备份脚本么 #4

Open
luodaoyi opened this issue Nov 7, 2023 · 3 comments
Open

能整个备份脚本么 #4

luodaoyi opened this issue Nov 7, 2023 · 3 comments

Comments

@luodaoyi
Copy link

luodaoyi commented Nov 7, 2023

一键备份 /data/www和数据库还有caddy的配置?
然后装了新环境在整个一键导入?

@moewhale
Copy link

moewhale commented Nov 8, 2023

若只是備份的話
大可借用一下軍哥的 backup.sh 脚本

不過需要修改
MySQL_Dump="/usr/local/mysql/bin/mysqldump"

MySQL_Dump="/usr/bin/mariadb-dump"

其它的配置,根據脚本中的説明做修改。

@luodaoyi
Copy link
Author

军哥脚本被挂马了 不敢用啊

@moewhale
Copy link

moewhale commented Nov 24, 2023

军哥脚本被挂马了 不敢用啊

只用軍哥的備份脚本就好了,代碼自己審計。
https://github.com/lnmpkvemail/lnmp/blob/master/tools/backup.sh

另外,秋水大佬的 LAMP 中的也有備份脚本,也能借用。
https://github.com/teddysun/lamp/blob/master/backup.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants