By tribune
Basically I have droplet A which hosts a wordpress site, and droplet B which was once upon a time a development server for droplet A, but which has fallen into disrepair. I’d like to start fresh and convert droplet B into a copy of droplet A, but when I create a snapshot of droplet A and try to select it from the restore menu of droplet B it doesn’t show up. I suspect this may be because droplet A has 8GB memory and 40GB disk, whereas droplet B has 1GB memory and 30GB disk, but enlighten me if I am wrong.
Is there a (free) way to accomplish what I am after?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey friend,
Great question. I’m afraid there isn’t a way to deploy a snapshot onto a smaller (disk) droplet at this time. The partitioning is all part of the snapshot and we do not currently have any logic to override it.
With that said, copying Wordpress over isn’t actually that bad, so let’s think about doing the same (or equivalent result) thing just a different way. This is what I’d do:
First I’m going to make two assumptions:
So this is what I’m going to do then:
ssh-keygen and hit Enter until it stops prompting you./root/.ssh/id_rsa.pub from Droplet B to Droplet A’s /root/.ssh/authorized_keys file. Can do this by hand, copy/paste contents.mysqldump wordpress > wordpress.sqlcd /var/www/html && rsync -avz root@Droplet_A_IP:/var/www/html/ .cd /root && rsync -avz root@Droplet_A_IP:/root/wordpress.sql . && mysql wordpress < wordpress.sqlBoom, done. Droplet B is running an exact copy of Wordpress from Droplet A.
Jarland
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.