Website backup can be divided into two parts: site files and database backup. the database can use the MSSQL (for mssql2000) backup mechanism to regularly generate backup files, and then package the files, compress them, and submit them ProgramAutomatically downloaded to the backup server.
To back up website files, you must first record the Update Status (initialization) of each file in the specified directory. During each scan, compare the latest files in the directory with those in the database to determine whether to download them, therefore, this operation involves directory scanning (retrieving all file information in the directory). If you place the database that records the File status on the backup server, a large amount of list information will be transmitted over the network, to avoid this problem, place the operation on the server side.
Specific methods
The remoting technology is used to establish a C/S type program. The remoting service on the server is mainly used for file comparison and scanning, back-to-download file lists, database backup operation information acquisition, and other operations, the specific file transmission is implemented by the FTP system. The FTP server has many ready-made software, and the FTP client needs to be programmed and implemented by itself, so that the backup operation process can be well controlled.