The CPanel panel uses php to automatically back up website files

Source: Internet
Author: User
Tags cpanel
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 :-)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.