Login   Register  
PHP Classes
elePHPant
Icontem

Empty Archive

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      TAR/GZIP/BZIP2/ZIP Archives  >  All threads  >  Empty Archive  >  (Un) Subscribe thread alerts  
Subject:Empty Archive
Summary:.tgz is empty
Messages:1
Author:Rob Embra
Date:2010-01-15 11:08:49
 

  1. Empty Archive   Reply  
Picture of Rob Embra
Rob Embra
2010-01-15 11:08:50
Hi there,

I need some help with this as I keep getting an empty file.

The script is being run from /public_html/archiver/

I would like to backup everything in /public_html/dump/ and its sub directorys to /none_public/backup/

$test = new gzip_file("/none_public/backup/$date.tgz");
$test->set_options(array('basedir' => ".", 'overwrite' => 1, 'level' => 9));
$test->add_files(array("/public_html/dump/"));
$test->create_archive();

if (count($test->errors) > 0)
print ("Errors occurred.");