Rsync to transfer large number of files in Cpanel

Home > Rsync to transfer large number of files in Cpanel
 

Most often, when we use Rsync to transfer large number of files in Cpanel, it may lead us to an error.

As part of our Server Management Services, we assist our customers with several cPanel queries.

Today, let us see how our techs go about this issue.

 

Rsync to transfer large number of files in Cpanel

When we use rsync to transfer an account with a large number of files, it can cause rsync to fail mid-transfer as rsync by default and uses incremental transfer to transfer the files.

Moving ahead, let us see how our Support Techs resolve this issue.

The steps we use to correct this issue is as follows:

Initially, when we run rsync, we must specify the flag –no-i-r.

We will see an example of the rsync command using the flag below.

After that, we can “push files” to a server from the current server we are logged into.

To do so, we use the following command:

rsync --no-i-r -avzP </home/User_being_Transferred> <user@server:/home/User_File_Destination>

Similarly, we “pull files” from a remote server to the server we are currently working on using the following command:

rsync --no-i-r -avzP <user@server:/home/User_being_Transferred> </home/User_File_Destination>

In the beginning, rsync will take time as it gets the full list of files. However, it will allow rsync to run successfully.

[Need further assistance? We are here for you]

 

Conclusion

In short, we saw rsync can cause an error when we use it to transfer an account. Today, we saw how our Support Techs perform this without causing the error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

 
 
%d bloggers like this: