How to release one-click backup and recovery tools for Linux faceplate
This article will explain in detail how to release the one-click backup and recovery tool for the Linux face. the content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Panel backup / recovery program for backing up all panel data, including websites, databases, scheduled tasks, etc. Warning: if you use this tool for data migration, make sure that both servers have the same MySQL version and the same Web server type.
Instructions for use:
1. Use python to execute script files
2. Backup parameters: python backupAll.py backup
Note: all data will be backed up to the backup.zip package in the directory where the script resides. After the backup is completed, you can download it through sftp or move to a website directory and download via http.
3. Recovery parameters: python backupAll.py input
Note: before executing the restore command, please make sure that backup.zip has been uploaded / downloaded to the same directory. Make sure there is no data in the database. After recovery, the database will be overwritten. Please log in using the password before the backup.
Example of an one-click command (entered in ssh):
Backup:
Wget-O backupAll.py http://www.bt.cn:5880/tools/backupAll.py & & python backupAll.py backup
Restore:
Wget-O backupAll.py http://www.bt.cn:5880/tools/backupAll.py & & python backupAll.py input
This is the end of the release of the one-click backup and recovery tool on the Linux faceplate. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.