If you like DNray Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

How to transfer a very large site from one server to another in a simple way?

Started by chatterbuzz1, Mar 27, 2023, 06:38 AM

Previous topic - Next topic

chatterbuzz1Topic starter

We have a task at hand - transferring a website from one hosting to another. However, there is a significant problem; the site files already amount to nearly 150 GB, mostly consisting of incompressible formats such as mp3 and video files.

Here's the challenge: how can we transfer these files from one server to another with minimal complications and time consumption?

Both servers run on CentOS and are situated in different colocation companies.

Any suggestions or insights on this matter would be greatly appreciated.
  •  

doro

A highly efficient solution for transferring files is rsync. It not only copies files but also checks for any breakage during the process, ensuring that previously copied files are not duplicated (using the in-place/partial option).

Moreover, rsync offers the capability to compress files on the fly and transfer them securely via ssh (with the -z and -e options).

This powerful tool can preserve file permissions, timestamps, and other attributes, resulting in an exact replica of the original files (with the -a option).

In case you need to prioritize bandwidth usage, rsync even allows you to limit the copying speed, preventing the entire channel from getting congested (with the bwlimit option).

Overall, it's hard to find a simpler and more reliable way to handle file transfers than rsync.
  •  

kr1e

To streamline the transfer process, I recommend compressing all the files into a zip archive initially. This way, transferring one large file will be significantly faster compared to numerous smaller ones.

Next, establish an ssh connection with the source server and subsequently connect to the new server via ftp to commence copying the compressed archive.

An additional optimization is to utilize the "screen" tool, which allows you to run the copying process independently. This means you won't have to keep your computer powered on for an extended duration.

By implementing these steps, you can expedite the transfer while minimizing the need for constant manual oversight.
  •  

antivir

1) Transferring the data is the initial step, and there are various methods available, but my preference would be rsync. It offers efficiency, especially when dealing with a large number of small files.
2) On the new server, it is essential to open access to our database user from the Internet to ensure smooth operation.
3) Next, we must deactivate the database on the old server, create a backup dump, and then merge it with the new server.
4) Additionally, we need to modify the scripts on the old server to establish a connection with the new database and launch the site smoothly.
5) To finalize the process, we should change the domain's configuration, specifically updating the A record of the domain from the old hoster to the new IP. Generally, this propagation can take only a few minutes (depending on the TTL settings).

By following this comprehensive approach, I have successfully transferred numerous working projects transparently to users, ensuring minimal disruption.
  •  

behi16

To begin with, given that both servers run on CentOS and are located in different colocation companies, one key consideration is the network connectivity between the two servers. It's essential to assess the available bandwidth and latency of the network connections at both locations to ensure that the transfer can be completed efficiently.

When dealing with such a large volume of data, using traditional file transfer methods like FTP or SCP may not be the most efficient option, as they can be time-consuming and susceptible to interruptions, especially across different colocation companies. Instead, it may be worthwhile to consider using specialized file transfer protocols or services that are designed for handling large data transfers with speed and reliability.

One option to explore is utilizing a dedicated file transfer service such as Aspera or Signiant, which offer high-speed, secure file transfers optimized for large files. These services utilize advanced protocols and transfer optimization techniques to ensure efficient and reliable data transfer, even over long distances. Their ability to resume interrupted transfers and maintain data integrity during the transfer process can be particularly valuable in a scenario involving such a substantial volume of data.

Another approach to consider is leveraging a content delivery network (CDN) with storage capabilities. By utilizing a CDN, you can offload the burden of data transfer to a distributed network of servers, potentially reducing strain on your own servers and accelerating the transfer process. CDNs often provide tools for managing and transferring large volumes of data efficiently, making them a viable option for handling the transfer of a considerable amount of website files.

In addition to exploring specialized file transfer solutions, it may also be beneficial to strategize the transfer process by categorizing the files based on type or size. This approach can help in breaking down the transfer into manageable batches, reducing the risk of interruptions and optimizing the overall transfer time.

Considering the incompressible nature of a significant portion of the files, careful evaluation of the necessity to transfer all files is prudent. Assessing the relevance of older or redundant files and archiving or removing them can contribute to reducing the overall transfer size and streamlining the process.

It's important to ensure that both hosting providers have adequate networking capabilities to support a large data transfer. This includes verifying sufficient bandwidth, low-latency connections, and any potential restrictions or guidelines related to data transfer within the colocation facilities.
Addressing the challenge of transferring a website with such a substantial volume of files requires a comprehensive approach that combines specialized file transfer services, strategic organization of the transfer process, and careful assessment of networking capabilities at both ends. By approaching the transfer with meticulous planning and consideration of technical factors, the complications and time consumption associated with the transfer can be minimized.
  •  


If you like DNray forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...