Cloning website, making staging copy (v-clone-website)

Post Reply
User avatar
dpeca
Site Admin
Posts: 462
Joined: Fri Jun 19, 2020 9:59 am
Cloning website, making staging copy (v-clone-website)

Post by dpeca »

We have an script for website cloning: v-clone-website

Let's say you have yourdomain.com and you want to make stage.yourdomain.com in one command.
In your SSH run:

Code: Select all

sudo /usr/local/vesta/bin/v-clone-website yourdomain.com stage.yourdomain.com
Our script will show you what will be copied, what database will be created, what URL will be replaced, just press enter to confirm it.
And that's all, the script will clone your site.
WordPress will be detected automatically, no need to modify wp-config.php manually.

Want to copy stage back to production?
In your SSH run:

Code: Select all

sudo /usr/local/vesta/bin/v-clone-website stage.yourdomain.com yourdomain.com
Script will do the rest.

See source code of the script for all available parameters: v-clone-website

Tags:


Post Reply