Feb 08
1. download pclzip.lib.php di http://www.phpconcept.net/pclzip/pclzip-downloads
2. untuk bakcup 1 create folder backup dan create file archive.zip
<?php
// Include the PclZip library
require_once(’pclzip.lib.php’);
// Set the arhive filename
$archive = new PclZip(’backup/archive.zip’);
// Set the dir to archive
$v_dir = dirname(getcwd()); // or dirname(__FILE__);
$v_remove = $v_dir;
// Create the archive
$v_list = $archive->create($v_dir, PCLZIP_OPT_REMOVE_PATH, $v_remove);
if ($v_list == 0) {
die("Error : ".$archive->errorInfo(true));
}
?>
sumber http://campstamba.com/2010/12/create-your-own-php-backup-solution-complete-tutorial-with-source-files/



