ewiget
Admin
 Admin
| Posts: 171 |  | Karma: 2
|
automatically add date and time to mysql backup - 2005/03/10 05:26
When using phpMyAdmin to export a mysql database, you can automatically add the full date and time to the exported name using the examples below:
- When exporting more than one database use - __SERVER__%D %R
- When exporting a single database use - __DB__%D %R
- When exporting a specific table from a database use - __TABLE__%D %R
This will result in either the server name, database name, or table name followed by the full date and time, i.e. name 03-10-05 05:26.sql
For more parameters, see strftime options for time specification at http://us4.php.net/manual/en/function.strftime.php
Post edited by: ewiget, at: 2005/03/10 05:27
Ed Wiget Technical Support http://www.xtremewebhosts.com |