Mautic Community Forums

How to backup?


How could I execute a whole backup step-by-step?


How could I execute a whole backup step-by-step?

@escopecz / @chad.windnagle

Could you help how to?:

  1. Reset all infos about campaign events, click tracking, etc… (my tests has finished but there’s some garbage)
  2. Full backup for domain changing. I’d like to run Mautic from domain “A” to “B” keeping all settings, templates, everything ready to start over domain “B”.
  1. Mautic doesn’t have a button to clear all stats data. You can suggest it on GitHub as feature request.
  2. There is no tool for backup. Actually, I’m working on Migration Bundle actually which will help to export all database entities with data, themes, plugins and install them in a new fresh Mautic instance. It will not probably be ready for 1.2.1, but I should make it for 1.2.2. You’ll have to move files and database manually, update app/config/local.php to connect to new database and clear cache (delete app/cache folder).

@escopecz , Teach us how to clear stats (if it’s possible) and to backup manually.

Clear stats: If you really wish to clear stats, go to database and truncate the tables the stats are stored in. It can cause data loss or unexpected behavior of Mautic so Backup database first so you have something to get back to. Or, clone the campaign/form/page or whatever you want to clear stats for. Stats data will not be cloned. Just the configuration. Then you can delete the entity with testing stats data.

Backup: Backup the files and database. How to move Mautic between servers was described in my previous post:

Could you describe step-by-step?

I’d rather won’t go into details. There is many different stats in different tables. The tables have relations between each other, so I don’t know what troubles it can cause. Feel free to try it yourself (backup first!) and let us know how it went.

@escopecz , would be valid delete actual user and database (after backup) and then create both again?

Sure you can do that. You’ll have to install Mautic again and your data will be lost (or in the backup file). Not sure what your goal is with this operation.

If you want to start fresh without any data you’ve created so far, remove app/config/local.php (backup first) and clear cache. Then Mautic allows you to install fresh database again.

I’ve been made several test on campaign events, filling forms and triggering emails. Now dashboard and another menus show stats data based on tests and I’m just want clean all of it.

so by downloading the mautic directory all the emails, campagins, landing pages and forms are saved?
and the contact data is saved in the sql?

Oh great, many thanks for your help:)


Any update on ways to back up our Mautic campaigns, emails, landing pages, themes, forms, contacts, assets, etc?
A plugin to export and be able to re-import into a new installation would be really beneficial.
I am quite nervous doing so much work on Mautic, when all could be lost with a server failure.
any update would be appreciated!

Nice… OK I got a question:

I got the MAUTIC PRO on their server… how do I back my stuff off ???

I’d also really like to see a way to reset Mautic’s statistics. Even if it’s just a database query, I’d be fine with that.

Just trying to truncate the database and praying things don’t break is not a feasable option I feel.

With reset I meant just a reset of all the statistics. But I changed my mind about this…

What I feel would be a much better alternative is to be able to specify contacts/emails that will be excluded from the tracking statistics. So that any testing that’s done with them won’t skew the statistics of the live campaigns.

But you can come a few steps closer by adjusting the dates.

When insite the specifik email - you will se a graphic to the left “Contact Segments Comparison”: Email sent, email read, email failed etc. To the right of this graphic you find the dates - and here you are able to change the dates.

So if you have testet up until yesterday - change the start date to the date that you have everything lined up - and you will see your relevant stats - at least in the grapics. But I guess it works as well with the “Click Counts” below.

Hope this can help someone.

Which folder is the database in? Which file should I save to back up the mautic database?