Manual backing up of website content from the server to local machine should be fully automated. The system must be able to zip the website content and download to the local machine twice every week using simple PHP and shell script.
Solution: Automatic Website Backup From Linux Server – PHP script
Automatic Website Backup From Linux Server PHP script using FTP function and sh code for zipping the backup files on timely base.
Created two services to make a weekly backup.
1) Server( Centos) – A shell script which compresses the entire web site files and stores in a specific path. This script runs twice every week. Cron will take care to execute periodically based on scheduled time.
2) Client or Local machine – PHP script which downloads the zip file through FTP commands. Using windows task scheduler, the PHP script will execute periodically to download the files.
Continue reading Automatic Website Backup From Linux Server PHP Script