Working on Your Blog Locally – Step 1, Back It Up!

If you like tinkering with things you will have inevitably run into the scenario where you had something which was working, albeit maybe no just quite how you wanted it. After looking through manuals and reading a bunch of documentation it’s time to play around with things that may seem a bit foreign or off the beaten path. What generally happens to me is that I’ll mess with something in an effort to make it better and then end up screwing up everything.

I’ve run into this scenario more often than I care to enumerate. What I’ve learned after spending much of my time trying to undo my mess created by playing with a setting that shouldn’t have been tweaked is that you always need to make a backup! One other thing I’ve learned is if you can copy or practice on something that you don’t mind destroying that is even better!

I administer not only my blog here, but I also am the webmaster for a RC club. I’ve been wanting to work on some theme and plugin options. Doing this on my personal site isn’t something that concerns me. If I screw up my personal site I loose some articles and a bit of a hobby. However, if my club site goes down then the public face of our organization isn’t accessible by members or those searching for RC clubs (this is a big deal).

Over the past few days I’ve been trying to get it where I can have a staging or test environment that I can completely destroy and not loose any sleep over. What follows are some tips, ticks, and helpful points to get a WordPress site running locally from a backup of your current production site!

Backing Up Your Current Site

In this post I’ll be giving you steps to backup your site using the Duplicator plugin. In follow-up posts I’ll show you how to setup a local server and restore the site so you can run it. Over the next few posts I’ll detail setting up a hosting environment and restoring your backup locally.

You should already be backing up your site. There are too many stories of WordPress sites getting hacked and being part of spam or botnet type operations. If you were to find out that your site was compromised why fret over lost work when you can identify when the intrusion took place and then restore to a point before that time. If you’re running a managed site from one of the many WordPress hosting sites out there it is likely they’re already doing it. It would be good to go a step further and do your own snapshots.

Duplicator

The first thing you need to do is get a restore-able copy of your WordPress site. Duplicator is a plugin that can duplicate, clone, backup, move and transfer an entire site from one location to another. This is exactly what type of backup you should be performing. If you can’t restore your backup anywhere then is it really a backup?

You can install Duplicator like any other WordPress plugin. Once installed you can walk through their documentation for creating a package. One thing you may want to consider when creating a Duplicator package is to filter out your uploads folder. On my personal blog I’ve uploaded a significant amount of images and other media. If I were to include this folder it would make the backup file incredibly large. On my much smaller site with much smaller amount of media the size of the site portion of the backup was around 250MB. The size of my personal site is many times larger. If you’re backing up to bring the site local for testing then you may not need to pull down all the content that you’ve uploaded for use inside each of your posts. Depending on your hosting Duplicator will warn you if it thinks the backup will fail because of the size of your site. Just be weary of how large your upload folder has become if Duplicator has issues creating a package for your site.

Ignore content in the package

Use the ignore function to cut down on the size of the package

You can use the archive section to tune the package. The files section is the important tab. As I mentioned above, the size of your package can become problematic. The two key paths to ignore will be the uploads and cache folders. The uploads folder contains all the images you’ve uploaded to the site. These folders can be ignored if you’re just going to be testing things locally. If you’re going to be completely backing up your site then you might not want to exclude the uploads folder. The cache folder may actually cause problems if there are items in it. This one is pretty much safe to ignore at any time.

Changing the defaults for the installer is done in the last section.

Changing the defaults for the installer is done in the last section

Once you’ve backed up your site you’ll want to restore it somewhere. I’ll cover that in a bit, but if you already know where you’re going to restore the site then you can put in those default. Of course, you can change these values when you run the installer.

The results of your package settings are shown here.

The results of your package settings are shown here

When you click next the Duplicator plugin will run a check on your settings and on your site. Any alerts will show here. Follow any instructions to resolve the warnings or errors. Click the build button and you can wait while Duplicator builds a backup of your site.

Wait while Duplicator creates a package for your site.

Wait while Duplicator creates a package for your site

Once your site has been duplicated by Duplicator you can download it through the web interface. Most of the time this can be rather slow. My perferred method is to fire up WinSCP and grab it right from the wp-snapshots folder. Whatever method you choose grab everything, the JSON, PHP, SQL, and ZIP files.

Now it’s time to restore your site locally. Before you can do that you need to setup a server to run your WordPress site locally.

Make sure your database info is correct.

Make sure your database info is correct

 

Tagged , , . Bookmark the permalink.

About Mike

I'm a software engineer. Look into the about page for more information about me.

78 Responses to Working on Your Blog Locally – Step 1, Back It Up!

  1. Pingback: Working on Your Blog Locally – Step 2, Setting Up WAMP – It's Not Found

  2. Pingback: Google

  3. Pingback: Dank Vapes Official

  4. Pingback: THC vape juice discreet shipping UK

  5. Pingback: Modafinil Buy Online

  6. Pingback: digital advertising

  7. Pingback: Baccarat Pattern Strategy

  8. Pingback: mygiftcardsite.com login

  9. Pingback: Artsy t shirts

  10. Pingback: 618media.com

  11. Pingback: tech news

  12. Pingback: buy xanax online

  13. Pingback: dank carts

  14. Pingback: free ads New Zealand

  15. Pingback: bondage set

  16. Pingback: Islay whisky tour

  17. Pingback: gold investment

  18. Pingback: free mobile number for whatsapp verify

  19. Pingback: gay dildo

  20. Pingback: michael fiore tips

  21. Pingback: SEO Vancouver

  22. Pingback: https://newbizhelp.org/affilifunnels-review-100-percent-honest/

  23. Pingback: GVG 941

  24. Pingback: sex swing

  25. Pingback: rechargeable bullet massager

  26. Pingback: apps download for windows 10

  27. Pingback: pc games for windows 10

  28. Pingback: download pc games for windows 7

  29. Pingback: free download for windows 8

  30. Pingback: anal toys

  31. Pingback: high end vibrator

  32. Pingback: clembuterol crazybulk

  33. Pingback: XVSR-499

  34. Pingback: nbl

  35. Pingback: nipple suckers

  36. Pingback: hotmail account login

  37. Pingback: anal plugs

  38. Pingback: سکس ایرانی

  39. Pingback: pc apps free download

  40. Pingback: apps for pc download

  41. Pingback: apps for pc download

  42. Pingback: g spot

  43. Pingback: pc games for windows 8

  44. Pingback: shopping in der nähe

  45. Pingback: website design

  46. Pingback: living off covered calls

  47. Pingback: txxx porn

  48. Pingback: how to use a vibrator

  49. Pingback: apps apk free download for windows 10

  50. Pingback: free download for windows 7

  51. Pingback: free download for windows 7

  52. Pingback: 420 vape juice

  53. Pingback: apps download for windows 10

  54. Pingback: apps download for windows 8

  55. Pingback: Cash For Scrap Cars Calgary

  56. Pingback: cruises from Sydney

  57. Pingback: whatsapp mitlesen ohne zugriff auf zielhandy

  58. Pingback: BBAN 248

  59. Pingback: best vibrating bullet

  60. Pingback: Fake Money For Sale

  61. Pingback: diazepam for sale

  62. Pingback: virtual bank

  63. Pingback: Demand 5

  64. Pingback: how to overcome irregular periods naturally

  65. Pingback: fake money that looks real

  66. Pingback: vibrators

  67. Pingback: Pet Travel

  68. Pingback: pc apps for windows xp

  69. Pingback: Google

  70. Pingback: buy fake money that looks real

  71. Pingback: cannabis for sale

  72. Pingback: Teaching Jobs Abroad

  73. Pingback: pc games for windows 8

  74. Pingback: best dildo harness

  75. Pingback: pc games for windows 7

  76. Pingback: real feel dildo

  77. Pingback: toys anal

  78. Pingback: thick dildo

Leave a Reply