Performing a backup and restore of MySQL databases
IAM backup is package made of two classes. One performs the backup of the selected MySQL database, and the second restores the database. Both classes support gzip-compressed files for improved performance. When performing the backup, the user is prompted to download the backup file, straight from the browser. Alternatively, the backup can be stored on the local server at a predefined location. Restoring the database (or copying it to another server) is just as easy.
Allows the creation of tar, gzip, bzip2, and zip archives, and the extraction of tar, gzip, and bzip2. Supports relative paths/no paths, comments, and recursing through subdirectories. Can write file to disk, allow user to download directly, or return file contents in a string or an array. Does not require any external programs to run. PHP must be compiled with '--with-zlib' for gzip and zip and '--with-bzip2' for bzip2. Supports creation of self-extracting zip archives. See readme for full details.
This package can be used to manage archives in the tar, gzip, bzip2 and zip formats.
There is a factory class that can perform several types of actions on packed archive files: create a new archive, retrieve information about the contents of an archive, and extract the files and directories contained in an archive.
The factory class creates objects and calls the function of different classes depending on the file name extension of the archive being manipulated.
This package does not require any external programs to run, but it needs PHP with support to zlib and bzip2 extensions.