Donate Share

phpMyBackupPro

Tracker: Support Requests

4 Filename - ID: 1833860
Last Update: Comment added ( datz )

Hello, I am trying to get the on call backup script (made through scheduled
backup page) to name the file more apropiately, for my own needs that is,
with standard date and time instead of the UNIX timestamp, in order to do
this, I opened

functions.inc.php

and changed:

// set backupfile name
$time=time();
if ($zip=="gzip") $backupfile=$db.".".$time.".sql.gz";
else $backupfile=$db.".".$time.".sql";
$backupfile=PMBP_EXPORT_DIR.$backupfile;

to:

// set backupfile name
$time=time();
$time=date("d-m-Y_H-i", $time);
if ($zip=="gzip") $backupfile=$db.".".$time.".sql.gz";
else $backupfile=$db.".".$time.".sql";
$backupfile=PMBP_EXPORT_DIR.$backupfile;

Now, at this point, even when just converting that timestamp to a standard
date format (d-m-Y_H-i), it does not create the backup file (it does when
using the standard timestamp method though).

Do you have any suggestions or ideas to how I may accomplish this? Or why
it is not working using the standard timestamp conversion method?

Any help will be greatly appreciated, I can be contacted by mail at olehhv
"at" gmail "dot" com.


Nobody/Anonymous ( nobody ) - 2007-11-18 01:56

4

Closed

None

Nobody/Anonymous

scheduled backups

None

Public


Comments ( 2 )




Date: 2008-01-10 11:57
Sender: datzProject AdminAccepting Donations


Hi,

as I do not require this feature, I won't implement it.
Sorry!


Date: 2007-12-06 22:20
Sender: nobody

Logged In: NO

I tried the same thing. It would work the very first time and never again.
I would really like to have a better naming scheme also.



Log in to comment.

Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2008-01-10 11:57 datz
priority 5 2008-01-10 11:57 datz
close_date - 2008-01-10 11:57 datz