Duplicator Documentation

Documentation, Reference Materials, and Tutorials for Duplicator

Back Up Before You Clean: Using DB Optimizer Safely


DB Optimizer’s cleanup tools delete data permanently. This guide explains why a backup matters first, how DB Optimizer teams up with Duplicator Pro to remind you, and the safe order to do things in.


The short version

Most of what DB Optimizer clears out is genuine junk you’ll never miss. But cleanup is permanent. Once you confirm it, the items you selected are gone from the database and you can’t get them back from inside the plugin. A current backup is your safety net, so if you ever clear something you actually needed, you can put it right back.

It takes two minutes, and it turns a one-way action into one you can walk back.

Why a backup really matters here

  • Cleanup can’t be undone in the plugin. There’s no recycle bin once a cleanup finishes.
  • Trashed posts and comments are real content. Emptying them is permanent.
  • Table operations touch live tables. Optimizing reorganizes your data, which is safe, but it’s still a change to your database.

With a backup in hand, whatever happens, you can roll your site back to exactly how it was a moment ago.

Taking a backup with Duplicator Pro

If you have Duplicator Pro installed:

  1. Open Duplicator Pro » Backups.
  2. Create a new backup and let it finish.
  3. Check that it completed successfully before you head back to DB Optimizer.

No Duplicator Pro? Use whatever backup method your host or another plugin gives you. The only thing that matters is that you’ve got a fresh, complete, restorable backup before you start cleaning.

The backup warning banner

When Duplicator Pro is installed, DB Optimizer keeps an eye on your backups for you. On the Cleanup tab, it shows a warning when:

  • It can’t find a backup, or
  • Your most recent backup is getting old.

Treat that banner as your cue to grab a fresh backup before you carry on. If there’s no banner, your recent backup is in good shape.

The safe order to work in

  1. Back up first. Take a fresh Duplicator Pro backup and confirm it finished.
  2. Look before you confirm. On the Cleanup tab, double-check the counts and the items you’ve selected.
  3. Read the confirmation box. It names the action and warns you whenever a deletion is permanent.
  4. Start small if you’re unsure. Clear the obviously safe stuff first (expired transients, embed cache, spam comments), then move on to revisions and trashed content.
  5. Optimize tables last. Once the cleanup’s done, reclaim your overhead on the Table Management tab.

Was this article helpful?


Related Articles

Don't Let Another Day Pass Unprotected

Every hour without proper WordPress backups puts your site at risk • Every delayed WordPress migration costs you performance and growth

Get Duplicator Now
Duplicator Plugin

Wait! Don't miss your
exclusive deal!

As a customer, you get 60% OFF

Try Duplicator free on your site — see why 1.5M+ WordPress pros trust us. But don't wait — this exclusive 60% discount is only available for a limited time.

or
Get 60% Off Duplicator Pro Now →