cPanel panel host scheduled backup and upload to the remote FTP server

cPanel panel host scheduled backup and upload to the remote FTP server


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

<<:  $5.5/month/512M memory/20G space/2000G traffic/Xen cloud VPS —— Stylex Networks

>>:  $39/month/8G memory/2T space dedicated server——OVH.COM

Recommend

$16/month/512M/40G space/300G traffic VPS —— Aquarius Storage

Aquarius Storage is a hosting service provider un...

20% discount code provided by WPWebHost

Promotion code: XMAS09 for 20% off Address: http:...

40% discount coupon code from Host1Free.com

Host1Free.com has been providing hosting services...

Hyper Expert: $2.69/month/1GB memory/20GB space/unlimited traffic/KVM/Seattle

Hyper Expert, founded in 2015, is an American hos...

SpeedyKVM: $3.8/month/2.6G memory/1TB hard disk/5TB traffic/KVM/Dallas

SpeedyKVM is a direct sub-brand of Incero Compute...

oneprovider: 7€/month/U2250/2GB memory/160GB space/unlimited traffic/1 IP

oneprovider, an American hosting company, focuses...

Combozo: $28/year/4GB RAM/200GB storage/2TB bandwidth/OpenVZ/Phoenix

Combozo, an American hosting provider, was founde...