Resizing a SpinUp Cloud Server enables you to add disk, RAM, and CPU resources to a specific node. However, resizing is limited around the flavors. A small server can resize to a medium flavor server, but a medium cannot resize to a large flavor server or vice versa. In order to move a server between flavors, you need to take other steps.
- A source SpinUp Cloud Server
- A destination SpinUp Cloud Server
If you're migrating between servers that are in different regions, you need to use Public Network which incurs bandwidth charges. Migrating between servers in the same region can use Datacenter Network which incurs no fees.
Migrate a Cloud Server to a different flavor
It’s important to note that migrating your data from one server to another only simple if you have a simple server configuration. Servers with many interdependent services or with highly customized setups can be difficult to migrate or create from scratch. The process is less complex if you are able to copy over just the files that you need without worrying about additional system files. It always easier to move to a server on a new flavor that operates the same operating system, kernel, software versioning as well.
In this article we’ll go over the widely available rsync service and how it can be used to migrate data easily between Linux servers. We’ll also touch on other methods which can be used to move data between servers.
Using rsync to migrate a Linux server
rsync is available on most Linux distributions by default. If you need to install it manually, however, you can do so by using your distribution’s package manager.
To move the files from one server to another, you’ll issue the following command:
rsync -e 'ssh -p 30000' -avlP --delete --stats [email protected]:/folder/path /here
The following breaks down each part of the command:
-e 'ssh -p 30000'Ensures that
rsyncuses the SSH protocol and sets the port.
-avlPA shortcut that contains the following options:
-aSaves the permission settings for the files.
-vReturns verbose information about
rsyncand what it’s doing. You can stop this by eliminating
-v, or you can request even more verbose output with
-vvv. Setting verbose mode with
-vvvreturns all information about the
-lPreserves any symbolic links that you created on the source server.
-PDisplays the progress of the transfer.
--deleteDeletes files from the destination folder that are no longer required (but only if they have been deleted from the originating folders). If you think you might need the files later, ensure you have backed up a copy.
--statsAdds more output regarding the file transfer status.
[email protected]:/folder/path /hereThe folders on the source server that you wish to back up.
/backup/Identifies the folder on the destination server in which to place the files you’re moving.
Once you issue the command you should receive an output that begins with:
receiving file list ... 50000 files to consider
In your case the number of files will differ depending on the amount being moved. You can monitor the progress from here as long as you’ve included the options mentioned above which display such output.
Other migration methods
Build from Server Snapshot
If you’ve created Server Snapshots of your Cloud Server, you can build a new server at the desired flavor from the Server Snapshot. So long as the filesystem fits within the confines of the disk supplied by your destination’s flavor, it should allow you to build the server. In some cases, after building at the new flavor with your Server Snapshot, you may need to resize the filesystem to grow it to use the total disk provided.
Web Deploy on Windows 2012 and 2016
To migrate IIS and SQL Server data on Microsoft® Windows, you can use the Microsoft Web Deploy tool.
WinSCP is an open-source, free Secure File Transfer Protocol (sftp) and File Transfer Protocol (ftp) client for Microsoft Windows. You can use WinSCP to securely transfer files between your local Microsoft Windows machine and a remote server.
Other applications may have their own means of handling data migration. For example, to migrate a database, you could make the new server a slave of the original database to automatically replicate your data to the new server.
These are only some of the methods you can use to migrate data between servers. There are many more third party clients and methods available on the web that you can use to accomplish your ends.