The names of backup files are generally regular (for example, name + Date and Time. Bak). We can use Windows batch processing to automatically perform remote backup of the system.
The procedure is as follows:
1. Create a batch processing file with the following Bak. Bat content
Echo open XXX. XXX> E: \ todo.txt
Echo username> E: \ todo.txt
Echo password> E: \ todo.txt
Echo bin> E: \ todo.txt
Echo put E: \ Date :~ 0, 4% % Date :~ 5, 2% % Date :~ 8, 2% pai.bak>> todo.txt
Echo bye> todo.txt
FTP-S: e: \ todo.txt (use the ftp-s command to read the FTP batch processing command from the todo.txt file for execution );
Del E: \ todo.txt (delete the todo.txt file so that it can be regenerated next time );
Echo % Date :~ 0, 4% % Date :~ 5, 2% % Date :~ 8, 0000 backupok! > Log.txt (write the result to log.txt );
2. Use scheduled tasks to regularly execute the Bak. BAT file.
Use ftp to batch process backup files