Website Files Backup PHP script

PHP script to backup all your website files to S3. It is a simple PHP utility to which is run

Share on Social Media

Website Files Backup PHP script

Screenshots


Details


PHP Script for website automatic backup process and it hold following features


Features:



  1. Written in PHP

  2. Simple Code

  3. Easy to customize

  4. S3 backup storage support

  5. Local backup storage support

  6. Flexiblity to use it on cron or scheduler or manual trigger

  7. Files to Zip archive

  8. Use it for images backup as well

  9. Exception logging using Monolog


Installation Instructions:

System Requirements



  1. PHP >= 5.5

  2. aws-sdk-php ^3.3.*

  3. Monolog ^ 1.23


Installation:



  • Copy project files to server


  • Rename "config/config.sample.php" to config.php and make credential changes as you need

    [ 
    'site_name' => 'test.com',
    's3' => true,
    's3_credentials' => [
    'key' => 'YOUR_S3_KEY',
    'secret' => 'YOUR_S3_SECRET',
    'region' => 'YOUR_S3_REGION',
    'bucket' => 'YOUR_S3_BUCKET_NAME'
    ],
    'site_path' => '/home/var/www/test.com/',
    'backup_local_destination' => '/home/backup/test.com/',
    'settings' => [
    'max_execution_time' => 600,
    'memory_limit' => '1024M'
    ]
    ]


  • Manual run
  • php app.php

Version History


v1.0

Released On: November 20, 2017


Reviews


Not yet reviewed

Question or Comment


No support questions or comments