Support » Plugin: BackUpWordPress » backup includes files outside wordpress folder

  • Resolved labres


    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 This means in the General Settings of the dashboard, the site url is, and the wordpress address url is

    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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • I, too, am having this problem, among other things (like timing out).



    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.

    Plugin Author Tom Willmot


    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' );

    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.

    Plugin Author Tom Willmot


    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' );

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘backup includes files outside wordpress folder’ is closed to new replies.