WordPress.org

Ready to get started?Download WordPress

Forums

Restoring a backup - do you lose more recent posts? (6 posts)

  1. cellobella
    Member
    Posted 6 years ago #

    Okay so I've deleted some stuff that I shouldn't have.
    I'm an idiot.

    But I had backed up my website last week so I could restore.

    My question is... do I lose my last week's worth of posts if I do - or will the backup just overwrite or add data?

    Sorry for the dumb question.

  2. shadow
    Member
    Posted 6 years ago #

    Restoring the backup will put back in place exactly what was in the backup at the time, so if you did it last week, it only has the content up until that time. Restoring it will override anything you now have in place. If you do not want to lose the last week of posts [depending on how many you have] perhaps save them to text files and repost. When finished - backup the whole lot so you have it all.

    And there are NO 'dumb' questions :)

  3. nhdriver4
    Member
    Posted 6 years ago #

    If you only deleted files, and nothing in your database, your posts will not be gone. Just restore the files, and you'll probably be just fine.

    And stop deleting things, it's bad for the environment! :D

  4. cellobella
    Member
    Posted 6 years ago #

    Okay so taking what you say on board... what if I:

    1. backup posts & comments section of current database.

    2. restore old backup.

    3. restore newly created backup of posts and comments.

    What d’ya reckon? That should work… right?

    :)

  5. shadow
    Member
    Posted 6 years ago #

    No not really. You have 2 backups.

    The older one which I am assuming contains the bulk of your posts until a week ago?

    A newer one which will only contain the last 7 days posts?

    Whichever one you import back into your database, will be the one that is in place.

    So, I would:

    1. Manually copy the past 7 days post to a text files [with comments info]

    2. Restore old backup

    3. Copy/paste the last 7 days back into new posts [time stamped if necessary]

    4. Make a new backup

    The other option is to wait until some much more intelligent soul than me tells you how to add the posts/comments from the past 7 days via a database query.

  6. cellobella
    Member
    Posted 6 years ago #

    Well the bit of the database that I've stuffed up is wp-options... so can I just restore that bit do you think?

Topic Closed

This topic has been closed to new replies.

About this Topic