Title: backup includes files outside wordpress folder
Last modified: August 20, 2016

---

# backup includes files outside wordpress folder

 *  Resolved [labres](https://wordpress.org/support/users/labres/)
 * (@labres)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/backup-includes-files-outside-wordpress-folder/)
 * 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](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](http://domain.org),
   and the wordpress address url is [http://domain.org/wordpressfilelocation](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/](http://wordpress.org/extend/plugins/backupwordpress/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Shadow212](https://wordpress.org/support/users/shadow212/)
 * (@shadow212)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/backup-includes-files-outside-wordpress-folder/#post-3278466)
 * I, too, am having this problem, among other things (like timing out).
 *  [Handoko](https://wordpress.org/support/users/handoko-zhang/)
 * (@handoko-zhang)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/backup-includes-files-outside-wordpress-folder/#post-3278468)
 * 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](https://wordpress.org/support/users/willmot/)
 * (@willmot)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/backup-includes-files-outside-wordpress-folder/#post-3278469)
 * 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' );`
 *  Thread Starter [labres](https://wordpress.org/support/users/labres/)
 * (@labres)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/backup-includes-files-outside-wordpress-folder/#post-3278470)
 * 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](https://wordpress.org/support/users/willmot/)
 * (@willmot)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/backup-includes-files-outside-wordpress-folder/#post-3278471)
 * 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' );
       ```
   
 *  Thread Starter [labres](https://wordpress.org/support/users/labres/)
 * (@labres)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/backup-includes-files-outside-wordpress-folder/#post-3278472)
 * 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.

 * ![](https://ps.w.org/backupwordpress/assets/icon-256x256.jpg?rev=1105225)
 * [BackUpWordPress](https://wordpress.org/plugins/backupwordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/backupwordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/backupwordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/backupwordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/backupwordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/backupwordpress/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [labres](https://wordpress.org/support/users/labres/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/backup-includes-files-outside-wordpress-folder/#post-3278472)
 * Status: resolved