Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Database backup naming scheme


Dirk Duckler

Recommended Posts

Posted

Essentially what I'd like to do is change the format of the naming scheme in the database backup tool, from db_[dbname]-[yearmomoxxxx]to my own specified format.

 

My most recent backup file was named "db_[dbname]-20090709163202.sql"

 

I want it to read "backup_2009_12_22.sql"

 

Can we make this happen?

Posted

Find this line in admin/backup.php

$backup_file = 'db_' . DB_DATABASE . '-' . date('YmdHis') . '.sql';

and change it to

$backup_file = 'db_' . DB_DATABASE . '-' . date('Y-m-d') . '.sql';

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...