Title: Am I using these codes correctly?
Last modified: August 20, 2016

---

# Am I using these codes correctly?

 *  Resolved [christogeretz](https://wordpress.org/support/users/christogeretz/)
 * (@christogeretz)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/am-i-using-these-codes-correctly/)
 * I’ve got a couple GB worth of photos I’d NOT like to backup every day, but can’t
   seem to get the code right. Could you help me get it fixed?
 * I inserted this into wp-config.php:
 *     ```
       define( 'HMBKP_EXCLUDE', '/wp-content/uploads/folder' );
       define( 'HMBKP_EMAIL', 'name@email.com' );
       ```
   
 * What do I have wrong? Thanks for your help!

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

 *  Plugin Author [Matthew Haines-Young](https://wordpress.org/support/users/mattheu/)
 * (@mattheu)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/am-i-using-these-codes-correctly/#post-2143609)
 * What are you trying to exclude.
 * Is there a folder in your uploads directroy called ‘folder’?
 * If not – and you want to exclude the entire uploads directory – you can just 
   remove that part of the code.
 * Other than that – it looks OK.
 *  Thread Starter [christogeretz](https://wordpress.org/support/users/christogeretz/)
 * (@christogeretz)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/am-i-using-these-codes-correctly/#post-2143612)
 * Looks like that worked (added a ‘/’ after “folder”):
 * June 21, 2011 23:41 34.42 MB Download | Delete
    June 21, 2011 07:05 2.47 GB Download
   | Delete <– before exclusion
 *  Plugin Author [Matthew Haines-Young](https://wordpress.org/support/users/mattheu/)
 * (@mattheu)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/am-i-using-these-codes-correctly/#post-2143620)
 * Glad that worked.
 * I would recommend downloading the backup – extracting it – and just checking 
   exactly what has been backed up.
 * We will include some more detailed instructions for using the exclude option 
   in the next release.
 * If you like the plugin – we would be grateful if you could rate it.
 * Thanks.

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

The topic ‘Am I using these codes correctly?’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Matthew Haines-Young](https://wordpress.org/support/users/mattheu/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/am-i-using-these-codes-correctly/#post-2143620)
 * Status: resolved