WordPress.org

Forums

BackUpWordPress
[resolved] backup includes files outside wordpress folder (7 posts)

  1. labres
    Member
    Posted 2 years ago #

    Using backupwordpress version 2.1.3, files from the directory above the wordpress root are also included. This makes the backup is much larger than necessary. WordPress is installed in a sub-directory of the hosting account root but is configured to run from the domain name assigned to the hosting account root as described in the codex at http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory. This means in the General Settings of the dashboard, the site url is http://domain.org, and the wordpress address url is http://domain.org/wordpressfilelocation.

    I have deleted backupwordpress and the backup folder in the content folder and reinstalled version 2.1.3 and always get the extra files outside the wordpress root included.

    These extra files have not been included in earlier versions. Are the extra files normal in version 2.1.3? If so, could you suggest a workaround. Thanks for a wonderful plugin!

    http://wordpress.org/extend/plugins/backupwordpress/

  2. Shadow212
    Member
    Posted 2 years ago #

    I, too, am having this problem, among other things (like timing out).

  3. Handoko
    Member
    Posted 2 years ago #

    Not sure. But my suggestion is to use the plugin for database only backup. Backuping files of a website can be a cpu intensive process which may consume much memory and cause time out error.

    For files backup, you may use File Manager (of cPanel) to compress the the main folder to a zip file. I thinks it's usually better, I never fail even I compress hundreds of MB files using File Manager.

  4. Tom Willmot
    Human Made
    Plugin Author

    Posted 2 years ago #

    You can re-define the root directory that BackUpWordPress backs up from by defining the root path in your wp-config.php

    define( 'HMBKP_ROOT', '/a/path' );

  5. labres
    Member
    Posted 2 years ago #

    Sorry, I guess I do not know the correct way to enter the root path as I get a server error when I try adding define( 'HMBKP_ROOT, '/a/path') into the wp-config.php file. If the WordPress files, including the wp-config.php file, I want to backup are in installed in a subdirectory xxx located such as public_html/xxx, what should I enter for '/a/path' ?
    Thanks for a great plugin.

  6. Tom Willmot
    Human Made
    Plugin Author

    Posted 2 years ago #

    It looks like you missed the closing single quote after 'HMBKP_ROOT.

    You would need to enter the following:

    define( 'HMBKP_ROOT', dirname( __FILE__ ) . '/xxx' );
  7. labres
    Member
    Posted 2 years ago #

    Tom, thank you.
    define( 'HMBKP_ROOT', dirname( __FILE__ )); got me into the correct directory to backup. I was using the wrong path previously. Apparently, when the WordPress files to backup are located in a sub-directory of the hosting account root(public_html), but WordPress is configured to run from the domain name assigned to the hosting account root, define( 'HMBKP_ROOT', dirname( __FILE__ )); is needed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic