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
|
Date: 2008-01-10 11:57
|
|
Date: 2007-12-06 22:20 Logged In: NO |
| 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 |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use