

{"id":110021,"date":"2022-07-05T09:00:06","date_gmt":"2022-07-05T03:30:06","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=110021"},"modified":"2022-07-05T12:38:46","modified_gmt":"2022-07-05T07:08:46","slug":"rsync-command-in-linux","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/","title":{"rendered":"Rsync Command in Linux"},"content":{"rendered":"<p>In this article, we will be going through the different aspects of Rsync command in linux. You will be learning what Rsync is, its advantages, how to install Rsync, and the syntax of the command. In the end, we will be looking at the options used with the Rsync command and also some practical examples of using the Rsync command in the terminal.<\/p>\n<h3>What is Rsync?<\/h3>\n<p>Rsync is a command-line-based utility in Linux-based operating systems that helps in transferring and synchronizing data between different machines and directories. Rsync is an abbreviation for Remote sync.<\/p>\n<p>You can use Rsync with SSH (secure shell) and copy your files securely to another location. As the name suggests, the Rsync tool lets you copy files from your system to your remote system. You can also transfer files locally using the Rsync command.<\/p>\n<p>This command is most commonly used by system administrators for different tasks like data mirroring, backups, or migrating files to other systems or servers across networks and disks.<\/p>\n<p>Rsync is a very fast, efficient, and powerful tool as it copies or transfers only the file changes from the source. It also offers a lot of customization options, which we shall go through in later sections.<\/p>\n<p>Rsync has many benefits over other methods of copying files because it uses both compression and decompression while sending and receiving files. It also saves bandwidth and has faster transfer time as it only transfers new or updated files and not everything.<\/p>\n<p>There are various tools and commands for data transfer like FTP and SSH. However, most Linux users prefer SSH for securely transferring files. Even in SSH, there are various specialized tools for transferring files, like SCP SFTP. None of them match the feature that Rsync provides.<\/p>\n<p>When we combine Rsync with SSH, bash, cron, and compression, we end up with the ultimate backup tool, and in this article, we will see exactly that!<\/p>\n<h3>Advantages of Linux Rsync<\/h3>\n<p>Before we jump to the technical part, let us discuss a few advantages of the Rsync command.<\/p>\n<p>1. The command efficiently copies files and syncs them to or from a remote system.<\/p>\n<p>2. Rsync also supports the copying of links, devices, permissions, owners, and the user group<\/p>\n<p>3. Rsync is faster than SCP because it only copies the differences between the files in your system and the remote system. If it is your first time copying the file to the remote system, it will take time as it copies the entire file, but from the next time onwards, it copies only the differences.<\/p>\n<p>4. The Rsync command consumes less bandwidth utilization because it uses the compression and decompression method while sending and receiving files on both ends.<\/p>\n<h3>How to install Rsync?<\/h3>\n<p>If you don\u2019t have the rsync tool installed on your system, you can simply install it by typing just 1 command in the terminal. Different Linux distributions have different syntax for installation, type the command based on your distribution of Linux.<\/p>\n<h4>Installing rsync on Debian based Linux distros<\/h4>\n<p>If you want to download the rsync tool on Debian based Linux distributions like Ubuntu, Kali, Mint, Deepin, AntiX, MX Linux, you can do so by using the following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo apt-get install rsync<\/pre>\n<h4><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/installing-rsync-on-ubuntu.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110077\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/installing-rsync-on-ubuntu.webp\" alt=\"installing rsync on ubuntu\" width=\"1143\" height=\"314\" \/><\/a><\/h4>\n<h4>Installing rsync on RHEL and Fedora-based Linux distros<\/h4>\n<p>If you want to download the Rsync tool on Red hat and Fedora-based Linux distributions like CentOS, Alma Linux, berry Linux, Qubes, Rocky Linux, Oracle Linux, you can do so by using the following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo dnf install rsync<\/pre>\n<h4>Installing rsync on Arch Linux-based distros<\/h4>\n<p>If you want to download Rsync on Linux distributions based on Arch like Manjaro, Chakra, Anarchy, Bluestar, Garuda, EndeavorOS, Archman, you can do so by using the command given below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pacman -S rsync<\/pre>\n<h4>Installing rsync on open SUSE-based Linux distros<\/h4>\n<p>To download rsync on open SUSE based Linux distributions like leap and tumbleweed, use the command given below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo zypper install rsync<\/pre>\n<h4>Installing rsync on Gentoo-based Linux distros<\/h4>\n<p>If you wish to download the Rsync tool on Gentoo based Linux distributions like Argent, Chromium OS, clover OS, Pentoo, Porteus, red core, Sabayon, you can do so by typing the command given below in the terminal:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">emerge sys-apps\/rsync<\/pre>\n<h3>Syntax of the Rsync command<\/h3>\n<p>Before we look into the options used with the rsync command let us take a look at the basic syntax of the Rsync command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">rsync &lt;options&gt; &lt;source&gt; &lt;destination&gt;<\/pre>\n<p>The above syntax is in a generalized form, let us look at some specific cases:<\/p>\n<h4>1. Copy files Local to local<\/h4>\n<p>To copy files within you computer, use the following syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">rsync &lt;options&gt; &lt;source&gt; &lt;destination&gt;<\/pre>\n<h4>2. Copy files Local to remote<\/h4>\n<p>To copy files from your local computer to the remote system, use the following syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">rsync &lt;options&gt; &lt;source&gt; &lt;user@ host:destination&gt;<\/pre>\n<h4>3. Copy files Remote to local<\/h4>\n<p>To copy files from the remote system to your local computer, use the following syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">rsync &lt;options&gt; &lt;user@ host:source&gt; &lt;destination&gt;<\/pre>\n<h3>Options with rsync command<\/h3>\n<p>There are soo many options that are used along with the rsync command that it would take an entirely separate article to discuss it, just to put the number into the picture, there are 18 main options with 140 sub-options!<\/p>\n<p>To save both your time and my time, I will be listing only the most important and commonly used options, if you are that interested, in learning about all of the one hundred and forty options, you are most welcome to type the command \u201crsync -h\u201d or \u201crsync &#8211;help\u201d and go through all of them.<\/p>\n<p>Here is the list of some of the most commonly used options with the Rsync command:<\/p>\n<h4>1. -v<\/h4>\n<p>This option provides verbose to the output for a better understanding.<\/p>\n<h4>2. -r<\/h4>\n<p>This option copies data recursively. It does not preserve timestamps and permissions while transferring the data.<\/p>\n<h4>3. -a<\/h4>\n<p>This option activates archive mode. Archive mode allows copying files recursively. It also preserves symbolic links, timestamps, user &amp; group ownerships, and file permissions.<\/p>\n<h4>4. -z<\/h4>\n<p>This option compresses the data of the file and works similarly to the \u201cgzip\u201d command.<\/p>\n<h4>5. -h<\/h4>\n<p>This option outputs numbers in a human-readable format.<\/p>\n<h4>6. -q<\/h4>\n<p>This option enabled the quiet mode, where most of the warnings are suppressed. This option shows only the error messages.<\/p>\n<h4>7. -P<\/h4>\n<p>This option shows a progress bar during the transfer and keeps the partially transferred files. This option is really helpful while transferring large files over slow or unstable network connections.<\/p>\n<h4>8. -l<\/h4>\n<p>This option preserves symbolic links<\/p>\n<h4>9. -e<\/h4>\n<p>This option specifies the remote shell to use. This is often set to ssh. This option is automatically enabled when using the option \u201c-a\u201d.<\/p>\n<h4>10. -d<\/h4>\n<p>This option transfers directories without recursing<\/p>\n<h4>11. -p<\/h4>\n<p>This option preserves the permissions of the files.<\/p>\n<h4>12. -o<\/h4>\n<p>This option preserves the owner of the files.<\/p>\n<h4>13. -g<\/h4>\n<p>This option preserves the group of the files.<\/p>\n<h4>14. -T<\/h4>\n<p>This option creates temporary files in the directory you specify.<\/p>\n<h4>15. -H<\/h4>\n<p>This option preserves the hard links.<\/p>\n<p>Again, this barely scratches the surface, given the number of options rsync has, nonetheless this is sufficient for now, and if you are that interested you are most welcome to read all of them in the manual of rsync, by typing the command \u201cman rsync\u201d in the terminal.<\/p>\n<p>Now that you know the basics of rsync like the installation, syntax advantages, and options, let us look at some practical examples.<\/p>\n<h3>Transferring files locally<\/h3>\n<p>To transfer files or sync all the files from one directory to another directory, use the following syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">rsync &lt;options&gt; &lt;source directory path&gt; &lt;destination directory path&gt;<\/pre>\n<p>Here I used the option \u201c-v\u201d to provide verbose.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/transferring-files-from-the-dataflair-directory-to-the-backup-directory.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110078\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/transferring-files-from-the-dataflair-directory-to-the-backup-directory.webp\" alt=\"transferring files from the dataflair directory to the backup directory\" width=\"780\" height=\"191\" \/><\/a><\/p>\n<p>You must note that if the destination directory does not exist, rsync will create one for you.<\/p>\n<h3>Checking Rsync progress<\/h3>\n<p>To check the progress of Rsync when transferring files, use the option \u201c-p\u201d<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/checking-rsync-progress.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110079\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/checking-rsync-progress.webp\" alt=\"checking rsync progress\" width=\"1091\" height=\"303\" \/><\/a><\/p>\n<p>However, if you run the command again, it will simply print \u201csending incremental file list\u201d as follows:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/running-the-command-to-check-rsync-progress-again.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-110080 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/running-the-command-to-check-rsync-progress-again.webp\" alt=\"running the command to check rsync progress again\" width=\"1034\" height=\"76\" \/><\/a><\/p>\n<p>That means, that if at all rsync detects any change in any of the previously sent files, it will only copy the changes and not the entire files again.<\/p>\n<h3>Copying files to a server<\/h3>\n<p>To copy or sync files all the files from your system to the server or any remote system, use the following syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">rsync &lt;options&gt; &lt;source&gt; &lt;user@ host:destination&gt;<\/pre>\n<p>In the source field, you must enter the path of the directory from which you want the files to be transferred (this directory must exist on your computer), In the destination field, you must enter the IP address of the host followed by the path of the directory you want the files to sync or copy.<\/p>\n<p>For example, the command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">rsync -avP \/home\/gopikiran\/Desktop root@192.168.0.132: \/tmp\/backup<\/pre>\n<p>Will copy all the files in my desktop to the remote system at the IP address \u201c192.168.0.132\u201d in the directory \u201c\/tmp\/backup\u201d. If the destination directory does not exist, rsync will create one for you with the same name.<\/p>\n<h3>Copying files from a server<\/h3>\n<p>To copy or sync files all the files from the remote system to to your system, use the following syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">rsync &lt;options&gt; &lt;user@ host:source&gt; &lt;destination&gt;<\/pre>\n<p>In the source field, you must enter the IP address of the remote system followed by the path of the directory you want the files to sync or copy from, in the destination field, enter the path of the directory from which you want the files to be transferred.<\/p>\n<p>For example, the command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">rsync -avP root@192.168.0.132: \/tmp\/backup \/home\/gopikiran\/Desktop<\/pre>\n<p>Will copy the files from the remote machine at the IP address \u201c192.168.0.132\u201d from the directory \u201c\/tmp\/backup\u201d to the directory \u201c\/home\/gopikiran\/Desktop\u201d in my local system.<\/p>\n<h3>Rsync over SSH<\/h3>\n<p>We can use SSH or secure shell to copy or sync our files, as it helps transfer in a secured connection. This way SSH can send our logins in an encrypted manner so that our password is safe.<\/p>\n<p>Using SSH, we can ensure that our data is being transferred in a secured connection so that nobody can read our data while it is being transferred over the internet.<\/p>\n<h4>Copying files to a server with the help of SSH<\/h4>\n<p>We are doing the same tasks we have done earlier, except this time we are taking the help of SSH, the syntax also changes ever so slightly, all we doo is add an \u2018ssh\u2019 before the source field as follows:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">rsync &lt;options&gt; ssh &lt;source&gt; &lt;user@ host:destination&gt;<\/pre>\n<h4><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/copying-files-to-a-server-with-the-help-of-ssh.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110081\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/copying-files-to-a-server-with-the-help-of-ssh.webp\" alt=\"copying files to a server with the help of ssh\" width=\"998\" height=\"221\" \/><\/a><\/h4>\n<h4>Copying files from a server with the help of SSH<\/h4>\n<p>To copy files from a server with the help of ssh, we use the following syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">rsync &lt;options&gt; &lt;user@ host:source&gt; &lt;destination&gt;<\/pre>\n<h3><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/copying-files-from-a-server-with-the-help-of-ssh.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110082\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/copying-files-from-a-server-with-the-help-of-ssh.webp\" alt=\"copying files from a server with the help of ssh\" width=\"780\" height=\"204\" \/><\/a><\/h3>\n<h3>Performing a dry run<\/h3>\n<p>If you are new to rsync, or just confused about what your command will do, you can always dry run Rsync using the \u201c&#8211;dry-run\u201d option. This option will only display what will happen when you run the command and will make no actual changes.<\/p>\n<p>This is really helpful because sometime you might mess up the destination directories, and end up losing your data. Hence, whenever you are confused as the whether the destinations directory exists or not, it is best to perform a dry run to check if rsync created the directory or rewrites it.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/performing-a-dry-run.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110083\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/performing-a-dry-run.webp\" alt=\"performing a dry run\" width=\"780\" height=\"158\" \/><\/a><\/p>\n<h3>Setting a bandwidth limit<\/h3>\n<p>If you wish to set a bandwidth limit while transferring data, you can do so by using the option \u201c&#8211;bwlimit\u201d as this helps us limit the I\/O bandwidth.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/setting-a-bandwidth-limit.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110084\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/setting-a-bandwidth-limit.webp\" alt=\"setting a bandwidth limit\" width=\"780\" height=\"212\" \/><\/a><\/p>\n<h3>Setting the maximum size of files<\/h3>\n<p>You can specify the maximum file size to be transferred or synced by using the option \u201c&#8211;max-size\u201d.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/setting-the-maximum-size-of-files.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110085\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/setting-the-maximum-size-of-files.webp\" alt=\"setting the maximum size of files\" width=\"1069\" height=\"283\" \/><\/a><\/p>\n<p>If I specify 300K as the max limit, only those files which are less than or equal to 300K will be transferred or synced.<\/p>\n<h3>Deleting extra files<\/h3>\n<p>Say there is an extra file in the destination that is not present in the directory. You can delete this extra file while syncing by using the option \u201c-delete\u201d<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/deleting-extra-files.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110086\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/deleting-extra-files.webp\" alt=\"deleting extra files\" width=\"923\" height=\"216\" \/><\/a><\/p>\n<p>On executing this command, the file that is present only in the destination directory and not in the source directory will be automatically deleted.<\/p>\n<h3>Using \u201c&#8211;include\u201d and \u201c&#8211;exclude\u201d options<\/h3>\n<p>The options \u201c-include\u201d and \u201c-exclude\u201d allow us to specify parameters. These options specify those files or directories which we want to include in our sync and exclude files and folders with which we don\u2019t want to be transferred.<\/p>\n<p>We can use these option using th following syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">rsync -a --exclude=node_modules --exclude=tmp \/src_directory\/ \/dst_directory\/<\/pre>\n<h3>Deleting files after successful transfer<\/h3>\n<p>If you want to delete the files from the source directory after the files have been successfully transferred into the destination directory, you can do it by using the option \u201c&#8211;remove-source-files\u201d<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/deleting-files-after-successful-transfer.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110087\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/deleting-files-after-successful-transfer.webp\" alt=\"deleting files after successful transfer\" width=\"1138\" height=\"100\" \/><\/a><\/p>\n<p>After executing this command, if your search for the file named \u2018DataFlair\u2019, there will be no such directory in the system:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/error-message-on-listing-contents-after-deleting-files-after-successful-transfer.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110088\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/error-message-on-listing-contents-after-deleting-files-after-successful-transfer.webp\" alt=\"error message on listing contents after deleting files after successful transfer\" width=\"652\" height=\"80\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>As you have seen, Rsync is a really simple, powerful, and efficient tool that is used to transfer and synchronize data across systems. You have learned what Rsync is, why it is used, its advantages, how to install it, and a few options used with it along with the syntax. Last but not least we have seen the Rsync in action by executing some practical commands in the terminal.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will be going through the different aspects of Rsync command in linux. You will be learning what Rsync is, its advantages, how to install Rsync, and the syntax of the&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":110025,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[26990,26992,26991],"class_list":["post-110021","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-rsync-command-in-linux","tag-rsync-examples","tag-rsync-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Rsync Command in Linux - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn what Rsync command in linux is, its syntax, advantages, how to install it. See options used with Rsync command with examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Rsync Command in Linux - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn what Rsync command in linux is, its syntax, advantages, how to install it. See options used with Rsync command with examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-05T03:30:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-05T07:08:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/rsync-command-in-linux.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Rsync Command in Linux - DataFlair","description":"Learn what Rsync command in linux is, its syntax, advantages, how to install it. See options used with Rsync command with examples.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"Rsync Command in Linux - DataFlair","og_description":"Learn what Rsync command in linux is, its syntax, advantages, how to install it. See options used with Rsync command with examples.","og_url":"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2022-07-05T03:30:06+00:00","article_modified_time":"2022-07-05T07:08:46+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/rsync-command-in-linux.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Rsync Command in Linux","datePublished":"2022-07-05T03:30:06+00:00","dateModified":"2022-07-05T07:08:46+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/"},"wordCount":2075,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/rsync-command-in-linux.webp","keywords":["Rsync Command in Linux","rsync examples","Rsync Linux"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/","url":"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/","name":"Rsync Command in Linux - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/rsync-command-in-linux.webp","datePublished":"2022-07-05T03:30:06+00:00","dateModified":"2022-07-05T07:08:46+00:00","description":"Learn what Rsync command in linux is, its syntax, advantages, how to install it. See options used with Rsync command with examples.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/rsync-command-in-linux.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/rsync-command-in-linux.webp","width":1200,"height":628,"caption":"rsync command in linux"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/rsync-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Linux Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"Rsync Command in Linux"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/110021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=110021"}],"version-history":[{"count":5,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/110021\/revisions"}],"predecessor-version":[{"id":110089,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/110021\/revisions\/110089"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/110025"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=110021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=110021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=110021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}