Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.22 KB

README.md

File metadata and controls

23 lines (17 loc) · 1.22 KB

simplePHPbackup

Backing up site files and database with only ftp-access.
Also can restore database from .sql/.sql.gz previously backed or just uploaded file

Quick start

  • Edit backuper.php "settings"-section (you can rename backuper.php to any needed name);
  • Upload backuper.php to any web-accessible location of your site;
  • Navigate to this just using browser.

Useful settings

$params['backup_files'] – true/false. Enables files backup.
$params['backup_db'] – true/false. Enables database backup.

$params['pack_dir'] – directory to backup files. Default is document_root.
$params['exclude_folders'] – array of excluded files/folders from backup.

$params['gzip_db'] – true / false. Try to compress database dump.
$params['restore_db'] – true / false. Add possibility to deploy databases. If "false", button "Restore DB" will be not exists.

$params['filter_ip'] – false / string. For security reasons, you can limit access to script by allowed IP's. Comma-separated, '0.0.0.0,1.1.1.1' for example.

$params['backup_folder'] – path to storing backups.

More settings in the script code.