It is very important to back up the website every day. If you have worked hard on the website day and night and there is a problem with the host space that leads to data loss, it will be a very tragic thing. If you back up your website every day, it will be very annoying. Therefore, we need to back up our own space regularly. The following is a timing introduction. 1. Backup principle: The following solution is based on the principle of using cPanel's Cron Jobs to regularly run the global backup script and automatically upload the backup files to other servers via FTP. 2. Download the script: Download the fullbackup.php file and change the corresponding content to yours.
3. Warning Statement: This global script contains the cPanel login account and password. For security reasons, you need to put this script in a folder outside the public_html folder, such as "/home/yourname/backup", and set the folder permissions to 600. Remember! 4. Configuration steps: 1. Modify the above script and save it as "fullbackup.php". Note: The FTP information is the host where the backup files are stored. For Ftphost, remember to fill in the IP address instead of the domain name. For some hosts, the FTP mode needs to be changed to "passiveftp" mode. 2. Upload the above script to the "/home/yourname/backup" directory. (No new backup directory can be created) 3. Change the permissions of the backup directory to 600 5. Configure CRON (clock guardian job):
Set the execution time, and then run the command as follows /usr/bin/php -q /home/yourname/backup/fullbackup.php (yourname is your username). Now the automatic backup settings are complete. After each backup, cpanel will send an email to remind you that the backup was successful. via: http://www.cnblogs.com/jnhotice/archive/2011/03/16/1985944.html http://www.weidao.net/706.html http://xn--37q906j.net/cpanel-panel-scheduled-automatic-backup-to-a-remote-host-ftp.cgi |