# How to clone a Mautic between VPS's but diff sudomain url?

**URL:** https://forum.mautic.org/t/how-to-clone-a-mautic-between-vpss-but-diff-sudomain-url/25436
**Category:** General Discussion
**Created:** [September 19, 2022, 9:26am UTC](https://forum.mautic.org/t/how-to-clone-a-mautic-between-vpss-but-diff-sudomain-url/25436 "2022-09-19T09:26:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![robm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robm/32/260_2.png) [@robm](https://forum.mautic.org/u/robm)
#### Post date: [September 19, 2022, 9:26am UTC](https://forum.mautic.org/t/how-to-clone-a-mautic-between-vpss-but-diff-sudomain-url/25436/1 "2022-09-19T09:26:19Z")

</div>

I have a mautic installed on a Digital Ocean VPS.

I would like to clone it and create a new mautic on a new VPS. Digital Ocean makes this easy via snap shots.

I would need to be able to access mautic at the the new IP. I assume then I simply update the A record from the new mautic subdomain to point to the VPS IP?

That should give me access to the new mautic using the access credentials from the original mautic, right?

What files would need editing and what edits would be needed if any? Or do i make changes in the config section of Mautic. Update the mautic url etc?

Would there be any SSL issues? The source mautic install / domain has an SSL cert.

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [September 19, 2022, 10:36am UTC](https://forum.mautic.org/t/how-to-clone-a-mautic-between-vpss-but-diff-sudomain-url/25436/2 "2022-09-19T10:36:08Z")

</div>

Hi,

I think you would need to do the following:

- Add new A record
- Update all references of your old domain in mautic/app/config/local.php
- Issue SSL certificate for new domain (that is unless you are using wildcard certificate)
- Update apache/nginx config
- Clear cache

Give it a try, if I forgot anything let me know.

---

<div class="post-metadata">

### Author: ![robm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robm/32/260_2.png) [@robm](https://forum.mautic.org/u/robm)
#### Post date: [September 19, 2022, 12:24pm UTC](https://forum.mautic.org/t/how-to-clone-a-mautic-between-vpss-but-diff-sudomain-url/25436/3 "2022-09-19T12:24:50Z")

</div>

Cheers,

I’ll give that a go and report back.

Also found this.

> **[How to set up a development environment to test new Mautic releases](https://www.mautic.org/blog/integrator/how-set-development-environment-test-new-mautic-releases)**
>
> Using a “staging” server to test whether an update is successful before applying it to production, is a best practice to prevent unexpected errors with your live marketing database. In this article, you will learn how to clone your Mautic...

---

<div class="post-metadata">

### Author: ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)
#### Post date: [September 19, 2022, 12:33pm UTC](https://forum.mautic.org/t/how-to-clone-a-mautic-between-vpss-but-diff-sudomain-url/25436/4 "2022-09-19T12:33:01Z")

</div>

pinged you on slack
