CPanel panel is a very powerful virtual host Management Panel. if you are a space provider, you are not familiar with this cp panel. I will introduce how to use php to automatically back up website files .? PhpPHPsc... CPanel panel is a very powerful virtual host Management Panel. if you are a space provider, you are not familiar with this cp panel. I will introduce how to use php to automatically back up website files.
Copy and save the preceding code as the fullbackup. php file and upload it to a directory other than public_html.
This global script contains the logon account and password of cPanel. to ensure security, you need to put this script in a folder other than the public_html folder, for example, "/home/yourname/backup ", and set the folder permission to 600. Remember!
2. fill in the relevant information and change the file name to fullbackup. php.
3. Upload the above script to the "/home/yourdomain/beifen" directory. (No beifen directory can be created)
4. change the beifen directory permission to 600.
5. open the clock daemon job (Cron Jobs) on the cpanel panel ).
Select the job frequency and enter it in the command column.
1 /usr/bin/php -q /home/yourname/backup/fullbackup.php
Address:
Reprinted at will, but please attach the article address :-)