Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#16 empty backup files

closed-fixed
nobody
None
6
2011-09-18
2007-07-06
Stephen Griffin
No

Everything seems to work, but the backup file created is always 0 bytes.. i.e. an empty file

PHP Version 5.2.1
MySQL 4.1.22-standard
phpMBP v.2.1

Discussion

  • Logged In: YES
    user_id=460675
    Originator: NO

    Same for me, using
    PHP Version 4.3.11
    MySQL 4.0.24-standard
    phpMBP v.2.1

     
  • Logged In: NO

    I have this problem, but only for some databases. Others appear to work fine.
    RHEL 4, mysql-4.1.20-2.RHEL4.1, php-4.3.9-3.18, phpMBP v2.1.

     
  • Logged In: NO

    I have this problem, but only for some databases. Others appear to work fine.
    RHEL 4, mysql-4.1.20-2.RHEL4.1, php-4.3.9-3.18, phpMBP v2.1.

     
  • Dirk
    Dirk
    2007-08-15

    • priority: 5 --> 6
    • milestone: --> 494691
     
  • Dirk
    Dirk
    2007-08-15

    Logged In: YES
    user_id=1047659
    Originator: NO

    I can't find anything you have in common except of pMBP v.2.1. To find out the reason I need some more informations like
    - your servers operating system,
    - the compression mode us used (gzip, zip, none)
    - the aprox. size of the db(s)
    - if safe-mode is activated
    - your PHP memory limit
    - your PHP timeout value

     
  • Dirk
    Dirk
    2007-08-15

    • labels: --> 1010036
     
  • Logged In: NO

    I have the same problem:
    Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.8b PHP/5.2.2 mod_perl/1.29 FrontPage/5.0.2.2510
    PHP Version: 5.2.2 Safe Mode activated: no PHP Memory Limit: 20M
    gzip compression possible: yes Emails sendable: yes FTP transfer possible: yes
    MySQL Server: 4.1.21-standard MySQL Client: 4.1.21

    The database filesize is 250MB. Should I increase php memory limit ?

     
  • Oz Solomon
    Oz Solomon
    2007-11-13

    Logged In: YES
    user_id=50591
    Originator: NO

    The problem appears to be that php is running out of memory. I have two comments:

    1. Using @ around calls to gzopen/gzwrite/gzclose (in PMBP_save_to_file) is a bad idea. It's just causing the errors to be silently discarded by PHP. Without this we would know right away that memory was out.

    2. This line in functions.inc.php is why memory is running out:

    if (@ini_get("memory_limit")) $max_size=900000*ini_get("memory_limit");
    else $max_size=$PMBP_SYS_VAR['memory_limit'];

    First of all, it is making assumptions about the format of memory_limit, which may or may not be an integer, or a string followed by M. It is assuming the latter. Then it multiplies by 900000, or about 90% of the memory limit, which in many cases will cause memory to run out.

    For me, I changed the if to
    if (0 && @ini_get("memory_limit")) ....
    And I'm using BackupPro's own memory_limit setting which you can control through the GUI.

     
  • Logged In: NO

    I fixed it.
    I have used hostgator.com server, my MySQL database has around 20Mb.

    What I did?
    1. Make php.ini file with two line:
    memory_limit = 100M
    safe mode = on
    2. Upload this file in to phpMyBackupPro directory

    Enjoy! Working for me well.

    [or just edit your existing php.ini file]

     
  • Dirk
    Dirk
    2011-09-18

    • labels: 1010036 -->
    • milestone: 494691 -->
     
  • Dirk
    Dirk
    2011-09-18

    will be fixed in v2.2

     
  • Dirk
    Dirk
    2011-09-18

    • status: open --> closed-fixed