Let us learn how to fetch shallow data from source cpanel. With the help of our Cpanel support services at Bobcares, we will learn how to fetch the data.
Fetching shallow data from source cpanel
The term “fetching shallow data from a source cPanel” refers to retrieving only a subset of the data from the source server rather than the whole data set. This will happen when moving data from one cPanel server to another.
When the source server contains a big quantity of data that you don’t need to send, or if you wish to conserve time and bandwidth during the data transfer process, fetching shallow data might be useful.
To get shallow data from a source cPanel server, we will need to utilize the “rsync” command-line program. Rsync is a strong program for safely and effectively transferring data across servers.
How to Fetch shallow data from source cpanel?
To retrieve shallow data with rsync, run the following command:
rsync -avz --progress --stats --exclude-from=/root/rsync_exclude.txt remote_username@remote_host:/path/to/remote/dir /path/to/local/dir
In this command, replace “remote username” with the remote server’s username, “remote host” with the remote server’s IP address or domain name:
"/path/to/remote/dir"
with the path to the remote directory we want to transfer, and:
"/path/to/local/dir"
with the path to the local directory where we want to store the transferred data.
The "—exclude-from=/root/rsync exclude.txt"
option is used to exclude files and directories from the remote server that we do not wish to transmit.
In the "/root/rsync exclude.txt"
file, we may define which files and folders to exclude.
During the transmission, the “-avz” option is used to archive the files and directories, preserve the permissions, and compress the data.
During the transfer procedure, the “—progress” and “—stats” arguments are used to display progress and statistics.
[Need assistance with similar queries? We are here to help]
Conclusion
To sum up, obtaining shallow data from a source cPanel server entails transferring only a fraction of the data from the distant server to the local server using the rsync program.
With the support of our Cpnale support services at bobcares we have now gone through the whole process on how to fetch the shallow data from source Cpanel.
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.
var google_conversion_label = "owonCMyG5nEQ0aD71QM";
0 Comments