Question

New Droplet with Backup from other Host (e.g. Media Temple)

We’ve got a few sites that were created and managed by an outside firm and are each on a Media Temple VPS. We’d like to manage them ourselves on Digital Ocean. I know we could manually move sites over to newly created droplets, but I’m wondering if there is an easy way to make up backup at Media Temple (I don’t currently have access to that account as it’s managed by them) and create new droplets with those images, then just point the nameservers to DO, set up DNS and we’re done.

Or I saw somebody on another thread mention the possibility of using rsync to copy the whole file system (assuming they’re both running the same distro/version). Anybody done that before?


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

We do not currently provide a method to import or export disk images or backups. The two methods you mentioned (manual or rsync) would be viable options. If you choose to use rsync to do the transfer it may be easier to only transfer specific directories rather than the full filesystem. What software and services are you running on your current VPS?

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@mattmaddux

Using rysnc is one way, if you have SSH access, though without it, you wouldn’t be able to use it. As the websites are being managed by a third-party, I would simply ask them to create a backup of each website and provide them for download. From there, you could simply use wget to pull the backups from the URL provided to the Droplet and then extract each archive, move the data to each preferred directory and ensure that proper permissions are setup (i.e. you don’t want to run accounts under root, each account should be ran as its own user).

Using wget from your Droplet is as simple as:

wget http://domain.ext/backup.tar.gz

Then, create a few home directories, one for each account:

mkdir -p /home/username/{public_html,logs,private}

Download the archive:

cd /home/username/public_html \
&& wget http://domain.ext/backup.tar.gz

Extract the Archive:

cd /home/username/public_html \
&& tar xzf --strip-components=1 backup.tar.gz

Then, to ensure proper permissions, create a new user:

useradd -d /home/username username

Then chown the directories and files to that user (chown = Change Ownership):

chown -R username:username /home/username

You could then use a tool, such as Adminer or phpMyAdmin, to restore database backups (just as you could use them to download backups on your current servers). You would need to install it as well, though Adminer is a single file and far less complicated than phpMyAdmin. With it, you simply download a single file from the URL below and access it as you would any normal PHP file (via URL), though you’ll want to either restrict access to it, or only upload it as needed as it’s not really a best-practice to leave open access to something that could be used to gain access to your database.

https://www.adminer.org/

You could then use a tool, such as Adminer or phpMyAdmin, to restore database backups (just as you could use them to download backups on your current servers). You would need to install it as well, though Adminer is a single file and far less complicated than phpMyAdmin. With it, you simply download a single file from the URL below and access it as you would any normal PHP file (via URL), though you’ll want to either restrict access to it, or only upload it as needed as it’s not really a best-practice to leave open access to something that could be used to gain access to your database. https://www.mymom.ga/2017/02/coffee-with-d-2017-hindi-dvdscr-350mb.html

Thanks for the offer. And yeah, everybody needs to know exactly what they’re getting into.

When setting up my first VPS I was torn between DigitalOcean and Linode, but ended up jumping in with DO on a lark. So far I’m loving DO and I’m happy with my choice. And having opened up the world of Virtual Private Servers I’m having fun thinking of things to do now, both at work and at home.