PHP Classes

Backup Task: Take backups of directories and MySQL databases

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 693 All time: 4,722 This week: 65Up
Version License PHP version Categories
backup-task 1.0.9BSD License5.3PHP 5, Databases, Files and Folders, S...
Description 

Author

This package can take backups of directories and MySQL databases.

It provides a generic interface to execute backup tasks, upload the backup data to somewhere safe, and notify that the backup tasks finished successfully.

There are different classes that actual implement the backup process for files in directories and MySQL databases.

The backup process creates tar.gz files with the backup data.

The upload step may transfer the backup file to another directory or to a remote server via FTP.

The notification step sends an e-mail with the results of the whole process.

Picture of Alexey Freelancer
Name: Alexey Freelancer <contact>
Classes: 2 packages by
Country: Ukraine Ukraine

 

Details

# BackupTask can help you to backup your directories and databases Create directories and databases backup, upload it to local directory or to ftp and send notification email with detail statistics. ## Requirements * PHP 5.3-7.2 * Unix OS ## Installation ### Download library git clone git://github.com/AlexeyFreelancer/BackupTask.git git clone git://github.com/symfony/ClassLoader.git ### Configure cp ./BackupTask/config.dist.php config.php Change settings in config.php ### Usage Create new file backup.php with following code <?php require_once 'ClassLoader/ClassLoader.php'; use Symfony\Component\ClassLoader\ClassLoader; $loader = new ClassLoader(); $loader->register(); $loader->addPrefix('BackupTask', __DIR__); $config = include 'config.php'; $backupTask = new BackupTask\BackupTask($config); try { $backupTask->run(); } catch (Exception $e) { echo $e->getMessage(); } ### Configure cron job @daily /usr/bin/php /path/to/backup.php daily @weekly /usr/bin/php /path/to/backup.php weekly @monthly /usr/bin/php /path/to/backup.php monthly

  Files folder image Files (23)  
File Role Description
Files folder imageCommand (3 directories)
Plain text file BackupTask.php Class Class source
Accessible without login Plain text file config.dist.php Conf. Configuration script
Accessible without login Plain text file example.php Example example
Accessible without login Plain text file README.md Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:693
This week:0
All time:4,722
This week:65Up
User Comments (1)
Excelent class, you as a big know how ! :-)
12 years ago (José Filipe Lopes Santos)
70%StarStarStarStar