PHP Classes
elePHPant
Icontem

Big Backup maker: Create backup of a directory in an archive file

Recommend this page to a friend!
  Info   View files Example   View files View files (20)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-08-25 (20 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 5 This week: 5All time: 9,012 This week: 128Up
Version License PHP version Categories
bbm 1.0Custom (specified...5PHP 5, Files and Folders, Systems adm...
Description Author

This class can create a backup of a directory in an archive file.

It can traverse a given directory and retrieve the list of files to backup.

The class than can create a compressed archive in another directory with the contents of the files to backup to be downloaded without time limitation or folder size limitation and without touching the PHP INI configurations like max_execution_time or memory_limit.

  Performance   Level  
Name: zinsou A.A.E.Moïse <contact>
Classes: 17 packages by
Country: Benin Benin
Innovation award
Innovation award
Nominee: 2x

Details
Package for reading a directory structure and backup the chosen types of  files and folders 
in another directory or in compressed archive to be automatically downloaded.
This package can take the path of a folder and rebuild the hierachy of subfolders and copy all the chosen files in another folder
or in a compressed archive to be downloaded without time limitation or folder size limitation and without touching the PHP INI configurations like
max_execution_time or memory_limit.

When you want to make a big size backup you can't exactly know how many time it will take so you can't just set a time like 9999 seconds and be sure that 
your folder with a size up to 1 giga and more will effectively be saved as you except.Now you can even if the max time is lower and the memory limit 
is the default size without worries make very large size backup.

See some how to use examples in the examples folder.

examples for  compress  and download are compressmaker.php and tocompress.php
examples for backup in a specified folder are archivemaker.php and copyfile.php
some other examples to simply show what else the package can do are in the file othersimpletests.php


the class declaration,methods, and properties  are well documented in comments in the class source BigBackupMaker.class.php
The package also used two excellent third party packages found in the PHPCLASSES REPOSITORY and already included(so no need to download):
BF_DOWNLOAD(binary files download) and UNIFIED-ARCHIVE(thanks to these authors for their perfect work...).
You can therefore use all of the features of these two packages without the main classes:

so you could read and extract archive or even create provided that you read the documentation... 
you could also serve files for download supporting resume and speed limitation...

The package itself is based on the precious package	CDIR of Hannesd found too in the PHPCLASSES REPOSITORY(Thanks to him for his precious works that inspired me)...


keep in mind that the package only take care of the steps of files copy so it will be judicious to set your time at least at 60 seconds
that will be sufficient in the most of case for rebuilding the folders hierachy

For bug reporting,feedback and improvement please feel free to contact me at:
leizmo@gmail.com or simply use the PHPCLASSES forum dedicated to this package...
  Files folder image Files  
File Role Description
Files folder imageexamples (5 files)
Files folder imagesrc (9 files, 1 directory)
Plain text file BigBackupMaker.class.php Class BigBackupMaker main class source
Accessible without login Plain text file license.txt Lic. license file
Accessible without login Plain text file readme.txt Doc. readme

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file archivemaker.php Example example script
  Accessible without login Plain text file compressmaker.php Example example script
  Accessible without login Plain text file copyfile.php Example example script
  Accessible without login Plain text file othersimpletests.php Example example script
  Accessible without login Plain text file tocompress.php Example example script

  Files folder image Files  /  src  
File Role Description
Files folder imagelicenseanddoc (3 files)
  Plain text file AbstractArchive.php Class auxilliary class source
  Plain text file class.Bf_Download.php Class auxilliary class source
  Accessible without login Plain text file function.gzip_stat.php Aux. auxilliary functions script
  Accessible without login Plain text file loadmyarchiver.php Aux. auxilliary script third party loader
  Plain text file LzwStreamWrapper.php Class auxilliary class source
  Plain text file PclZipLikeZipArchiveInterface.php Class auxilliary class source
  Plain text file PclZipOriginalInterface.php Class auxilliary class source
  Accessible without login Plain text file REGISTER_LZW_STREAM_WRAPPER.php Aux. auxilliary script
  Plain text file UnifiedArchive.php Class auxilliary class source

  Files folder image Files  /  src  /  licenseanddoc  
File Role Description
  Accessible without login Plain text file doc.archiveNodes.md Doc. auxilliary documentation
  Accessible without login Plain text file LICENSE.md Doc. auxilliary license file
  Accessible without login Plain text file README.md Doc. auxilliary documentation

 Version Control Unique User Downloads Download Rankings  
 0%
Total:5
This week:5
All time:9,012
This week:128Up