Change name of forum backup file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • criscokid
    Senior Member
    • Jun 2003
    • 315
    • 3.6.x

    Change name of forum backup file

    I've got the following line in backup.php
    print_input_row($vbphrase['path_and_file_to_save_backup_to'], 'filename', 'E:\Backups\forums\forumbackup-' . vbdate(str_replace(array('\\', '/', ' '), '', $vboptions['dateformat']), TIMENOW) . '.sql', 0, 60);

    which if used today would create:
    E:\Backups\forums\forumbackup-28thJanuary2005.sql

    I'd like to change this so that the backup file names are stored in a better order of
    E:\Backups\scene-OUT.com\forums\forumbackup-20050128.sql

    If that's not possible then I'll settle for E:\Backups\scene-OUT.com\forums\forumbackup-2005January28.sql
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    Sorry, I don't understand the question. Please explain.

    Also please note the only reliable method of backing up and restoring a database is with shell access via telnet or ssh. Please see the instructions here:

    Backup:


    Restore:


    This is because backing up with a PHP script like that in the Admin CP or phpMyAdmin can result in PHP timeouts errors and an incomplete backup file.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    • criscokid
      Senior Member
      • Jun 2003
      • 315
      • 3.6.x

      #3
      Using backup.php today the 'dateformat' field produces '28thJanuary2005' which is used to create filename: E:\Backups\forums\forumbackup-28thJanuary2005.sql

      I'd like to use the date in numerical format: 20050128 to create E:\Backups\forums\forumbackup-20050128.sql

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        You can manually type in whatever name you want when making the backup.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎