PHP Classes

Tar.Gz option is not working....

Recommend this page to a friend!

      PHP Backup to WebDav Server  >  All threads  >  Tar.Gz option is not working....  >  (Un) Subscribe thread alerts  
Subject:Tar.Gz option is not working....
Summary:Zip working, But Tar.Gz not working....
Messages:5
Author:Abdullah AL Mamun
Date:2015-06-02 09:09:42
 

  1. Tar.Gz option is not working....   Reply   Report abuse  
Picture of Abdullah AL Mamun Abdullah AL Mamun - 2015-06-02 09:09:42
Used this backup system.
But zip format is ok, tar.gz format is not ok.
When backup in tar option, than only backup tar format not tar.gz
Please re-check it.

  2. Re: Tar.Gz option is not working....   Reply   Report abuse  
Picture of Dmitry Mamontov Dmitry Mamontov - 2015-06-02 14:25:23 - In reply to message 1 from Abdullah AL Mamun
In order to use TAR GZ want to write this:

$ya = new YandexBackup('test@yandex.ru', 'test');

$ya->setName('My Backup');
$ya->setType(YandexBackup::TAR);
$ya->setCompression(true);

$ya->db('user', 'password', 'db');
$ya->folder('/var/www/public_html/');

$ya->backup();

  3. Re: Tar.Gz option is not working....   Reply   Report abuse  
Picture of Abdullah AL Mamun Abdullah AL Mamun - 2015-06-08 07:05:33 - In reply to message 2 from Dmitry Mamontov
Hello,
It's work.
But loading time many long, and show 30/60 seconds execution error sometime.
put this code $ya->setCompression(true);
Local server backup successfully, but webdav server no backup.

Please help me or solution.

Thanks

  4. Re: Tar.Gz option is not working....   Reply   Report abuse  
Picture of Abdullah AL Mamun Abdullah AL Mamun - 2015-06-17 08:54:52 - In reply to message 3 from Abdullah AL Mamun
Let me know please.

  5. Re: Tar.Gz option is not working....   Reply   Report abuse  
Picture of Abdullah AL Mamun Abdullah AL Mamun - 2015-06-17 08:59:20 - In reply to message 4 from Abdullah AL Mamun
$ya = new YandexBackup('test@yandex.ru', 'test');
$ya->setName('My Backup');
$ya->setType(YandexBackup::TAR);
$ya->setCompression(true);
$ya->db('user', 'password', 'db');
$ya->folder('/var/www/public_html/');
$ya->backup();

But when i add this line $ya->setCompression(true)
no backup files in my local server and web server.

Please, is it correct code or what's my fault? let me know