? #1 - WordPress Back Up

Discussion in 'WordPress' started by MrMarco, Dec 28, 2005.

  1. #1
    WordPress has a backUp utility. When I click on the back up link the page gives me:

    WARNING: Your wp-content directory is NOT writable! We can not create the backup directory.
    /home/username/public_html/wordpress/wp-content/backup-517e7/

    WARNING: Your backup directory is NOT writable! We can not create the backup directory.
    /home/username/public_html/wordpress/

    I've inserted username here for obvious reasons...

    How do I care for this so I can use the back up feature completely? OR is it possible these two directories don't get backed up?

    I've always felt that backups are important, and it still is with all this, isn't it?
     
    MrMarco, Dec 28, 2005 IP
  2. kaptain

    kaptain Peon

    Messages:
    194
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i think you are talking about the mysql backup plugin? yes

    If so you need to make the wp-content directory chmod 777
     
    kaptain, Dec 28, 2005 IP
  3. MrMarco

    MrMarco Active Member

    Messages:
    140
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    I guess so... On my plugin management screen I see 3 plugins
    1-Akismet
    2-Hello Dolly
    3-WordPress Database Backup

    I clicked on the Backup link and got the resulting errors in my first post.
     
    MrMarco, Dec 28, 2005 IP
  4. jimrthy

    jimrthy Guest

    Messages:
    283
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    kaptain's right. Change the directory permissions so the web server can write to them.

    I've always hated going with 777 permission, just because I'm paranoid, but you don't have much choice. Unless maybe you have enough access rights to set the group on the directory to one the web server is in.
     
    jimrthy, Dec 28, 2005 IP
  5. kniveswood

    kniveswood Well-Known Member

    Messages:
    764
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    120
    #5
    666 works just fine as well. :D
     
    kniveswood, Dec 28, 2005 IP
  6. marketjunction

    marketjunction Well-Known Member

    Messages:
    3,779
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    183
    #6
    I never understood why in the heck WordPress DB Back plug-in used a web viewable directory for backing up. Hey world, here's all my crap. I am sure the author expected you to modify it, but many people don't know how.

    You can modify this by editing the plug-in file.

    define('WP_BACKUP_DIR', 'wp-content/backup');

    Change it.
     
    marketjunction, Dec 28, 2005 IP
  7. jimrthy

    jimrthy Guest

    Messages:
    283
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ROFL. Like I feel safer with *that* one! :D
     
    jimrthy, Dec 28, 2005 IP
  8. kaptain

    kaptain Peon

    Messages:
    194
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    really, to me it makes more sence to have it sent in an email. if you loose your server contents then you have your database on you local hard drive.
     
    kaptain, Dec 29, 2005 IP
  9. marketjunction

    marketjunction Well-Known Member

    Messages:
    3,779
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    183
    #9
    Yea, email is good too or do both.
     
    marketjunction, Dec 29, 2005 IP
  10. MrMarco

    MrMarco Active Member

    Messages:
    140
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #10
    ok, now I'm confused again :(

    Simple terms for a simple man... please
     
    MrMarco, Dec 30, 2005 IP
  11. kaptain

    kaptain Peon

    Messages:
    194
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #11
    when you click the backup link in wordpress it will give you an option of how you want to save the backup.

    Options at the bottom of the page:
    1) Save to server
    2) Download to your computer
    3) Email Backup to (Your email)

    This plugin does not backup your site files ie, php and html file.... it backs up your database (posts and comments) The data base is the part that usually can not be replaced if you have a serious problem like loosing your hard drive data.
     
    kaptain, Dec 30, 2005 IP
  12. MrMarco

    MrMarco Active Member

    Messages:
    140
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #12
    Kaptain - That makes sense, I'll give it a try.

    What about what MarketJunction said:
    Sorry, I need this in baby step terms.
     
    MrMarco, Dec 30, 2005 IP
  13. marketjunction

    marketjunction Well-Known Member

    Messages:
    3,779
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    183
    #13
    In the plug-in file is that line I mentioned--towards top of file. It tells the plug-in where to store your DB file. You can change it, so the DB file is stored elsewhere, by modifying that line to your desired directory.

    For example:

    define('WP_BACKUP_DIR', '/websites/mysite.com/backup');

    If mysite.com's web viewable directory was not mysite.com, but say: mysite.com/html/ then this would be ideal.

    I was just pointing this out, because if you have multiple blogs, it's great to be able to send all your backups to one main directory.
     
    marketjunction, Dec 30, 2005 IP
  14. MrMarco

    MrMarco Active Member

    Messages:
    140
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #14
    What I see when I click the backup link is number 2 is checked off. Download to your computer. Does that mean when it backs up, it does so directly to my computer's hardrive or do I need to use the email function?

    Also, and this may have been answered already, how do I remedy the 2 following warnings:
    1-WARNING: Your wp-content directory is NOT writable! We can not create the backup directory.
    2-WARNING: Your backup directory is NOT writable! We can not create the backup directory.
     
    MrMarco, Dec 31, 2005 IP
  15. MrMarco

    MrMarco Active Member

    Messages:
    140
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #15
    MarketJunction - In my Plugin file, in the WordPress folder, the backup file reads as follows:
    'wp-db-backup.php'
    is that the file you're referring to when you say 'WP_BACKUP_DIR'?
    Do I rename that file, and if so to what exactly?
     
    MrMarco, Dec 31, 2005 IP
  16. marketjunction

    marketjunction Well-Known Member

    Messages:
    3,779
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    183
    #16
    No. That's the file name. You need to open up the file to see the php code.

    If you open it in a text editor, dreamweaver or whatever, you will see lots of text--that's php code.
     
    marketjunction, Dec 31, 2005 IP
  17. Hon Daddy Dad

    Hon Daddy Dad Peon

    Messages:
    1,041
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    0
    #17
    There is an easier way. Do you know how to add and remove folders to your wp-content directory?

    If so:

    1. Remove the curren wp-backup plugin from your plugin directory
    2. Load the back up plugin below to your plugin directory
    3. Create a folder in wp-content called 'backup'
    4. Change the permissions to the folder 'backup' to 777

    No need to change the wp-content folder to 777 in this solution
     

    Attached Files:

    Hon Daddy Dad, Dec 31, 2005 IP