Plugin Directory

Changeset 3176126


Ignore:
Timestamp:
10/26/2024 05:36:28 PM (16 months ago)
Author:
deltabackups
Message:

Updated readme 1.0.4

Location:
deltabackups/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • deltabackups/trunk/deltabackups-main.php

    r3139881 r3176126  
    655655
    656656            // Replace the default database prefix with the current prefix
    657             $modifiedLine = str_replace(DTBPS_DB_SQL_TABLE_DEFAULT_PREFIX, $wpdb->prefix, $line);
     657            $modifiedLine = dtbps_modify_sql_query($line, $wpdb->prefix);
    658658            $queries = explode(";;;\n", $modifiedLine);
    659659            if(count($queries)>1){
     
    980980    echo '<div class="error"><p><b>There is active DeltaBackups process started by you or other user, all activity is locked try later!</b></p><p><i>* This can be unchecked in Settings section, not advised!</i></p></div>';
    981981}
     982
     983function dtbps_modify_sql_query($line, $wpPrefix) {
     984    // replace only first occurrence, create wp_options and all inserts to wp_options except wp_user_roles
     985    if(strpos($line, 'wp_posts') !== false  || (strpos($line, 'wp_options') !== false && strpos($line, 'wp_user_roles') === false)) {
     986        return preg_replace('/' . preg_quote(DTBPS_DB_SQL_TABLE_DEFAULT_PREFIX, '/') . '/', $wpPrefix, $line, 1);
     987    }
     988
     989    // replace all prefixes for the query
     990    return str_replace(DTBPS_DB_SQL_TABLE_DEFAULT_PREFIX, $wpPrefix, $line);
     991}
  • deltabackups/trunk/deltabackups.php

    r3141857 r3176126  
    88 * Text Domain: deltabackups
    99 * Requires at least: 5.2
    10  * Version: 1.0.3
     10 * Version: 1.0.4
    1111 * Requires PHP:      5.6
    1212 * License:           GPL v2 or later
  • deltabackups/trunk/readme.txt

    r3141836 r3176126  
    99Requires at least: 4.3
    1010Tested up to: 6.6.1
    11 Stable tag: 1.0.3
     11Stable tag: 1.0.4
    1212Requires PHP: 5.6
    1313License: GPLv2 or later
     
    2222Easily restore your WordPress site with DeltaBackups.
    2323Choose specific versions or perform a complete site restore with just a few clicks, ensuring quick recovery and minimal downtime.
    24 - Delta Versioning
    25 - Encryption
    26 - Cloud Storage
    27 - Migration Tool
    28 - Unlimited sites (all plans)
     24-Delta Versioning
     25-Encryption
     26-Cloud Storage
     27-Migration Tool
     28-Unlimited sites (all plans)
    2929
    3030== Installation ==
     
    4848Backup process works, but restore is still in development. You could use it to migrate your WP site from multisite to regular instance. Its still not fully tested and Multisite use is not recommended and at your own risk.
    4949
     50= How was this plugin tested? =
     51It was tested on Linux and Windows OS.
     52Some of the installations include: Standard WordPress installations, cPanel (WP Toolkit), Local software, and using official docker WordPress images (Apache and Nginx).
     53Also tested with MySql and MariaDB.
     54Worked ok with PHP 5.6 and all above, last tested with 8.3
     55
    5056= Is there a scheduling feature? =
    5157This feature is still in development, stay tuned!
     
    5864
    5965== Screenshots ==
    60 1. **Backups** - Backups list page
    61 2. **Clients** - Clients list page
     661. **backups** - Description of what is shown in screenshot 1.
     672. **clients** - Description of what is shown in screenshot 2.
    6268
    6369== Changelog ==
     70
     71= v1.0.4 =
     72* Fixed wp_options prefix table modification for installations that have now wp_prefix like prod_options etc.
    6473
    6574= v1.0.3 =
Note: See TracChangeset for help on using the changeset viewer.