{"id":8466,"date":"2019-04-18T07:25:47","date_gmt":"2019-04-18T07:25:47","guid":{"rendered":"https:\/\/ittutorial.org\/?p=8466"},"modified":"2020-10-05T19:50:00","modified_gmt":"2020-10-05T19:50:00","slug":"rsync-remote-sync-how-to-use-in-linux","status":"publish","type":"post","link":"https:\/\/ittutorial.org\/rsync-remote-sync-how-to-use-in-linux\/","title":{"rendered":"What is Rsync ( Remote Sync ) in Linux"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I will explain\u00a0What is Rsync ( Remote Sync ) as nd How To Use Rsync to Sync Local and Remote Directories in this article.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8467\" src=\"https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/04\/rsync.jpg\" alt=\"\" width=\"300\" height=\"296\" \/><\/p>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n\n<p>&nbsp;<\/p>\n<h1><span style=\"color: #ff0000;\">Rsync <\/span><\/h1>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #ff0000;\">Rsync ( Remote Sync )<\/span><\/h2>\n<p>Rsync is my favorite command that being developed by Wayne Davison and an open source utility that performs\u00a0<span style=\"color: #ff0000;\">incremental file transfer<\/span><span style=\"color: #ff0000;\"><span style=\"color: #000000;\">.\u00a0<\/span><\/span>Latest\u00a0Rsync version 3.1.3 is released.<\/p>\n<p>Rsync (Remote Sync) is used for copying and synchronizing files and directories remotely and locally in Linux\/Unix systems.<\/p>\n<p>You can copy and synchronize your files remotely and locally across directories, across disks and networks, perform data backups and mirroring between two Linux\/Unix machines.<\/p>\n<p>&nbsp;<\/p>\n\n<p>&nbsp;<\/p>\n<p>Rsync is faster than scp ( secure copy )\u00a0because rsync provides incremental file transfer using remote-update protocol which allows to transfer just the <span style=\"color: #ff0000;\">changed blocks<\/span>.<\/p>\n<p>You can transfer and syncronized backup files to the Remote server for disaster purpose using rsync.<\/p>\n<p>For example, execute following command to transfer all contents of \/u01\/backup to the 192.168.63.63 server for the first time.<\/p>\n<pre>rsync -av --delete --inplace \/u01\/backup\/* 192.168.63.63:\/u01\/backup\/ --rsync-path=\/usr\/bin\/rsync &gt; \/tmp\/rsync.log<\/pre>\n<p>&nbsp;<\/p>\n\n<p>&nbsp;<\/p>\n<p>If it is completed, then you can use it twice to syncronized two server with changed blocks.<\/p>\n<pre>rsync -av --delete --inplace \/u01\/backup\/* 192.168.63.63:\/u01\/backup\/ --rsync-path=\/usr\/bin\/rsync &gt; \/tmp\/rsync.log<\/pre>\n<p>&nbsp;<\/p>\n<p>Rsync is very practical and powerful during database and application migration. Because transfer all data for the first time, then if you run it again, it will transfer only changed data or differences.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #ff0000;\">Do you want to learn Linux System Administration for Beginners, then read the following articles.<\/span><\/h4>\n<blockquote class=\"wp-embedded-content\" data-secret=\"Ksh1DVStQ7\"><p><a href=\"https:\/\/ittutorial.org\/linux-administration-tutorial-for-beginners\/\">GNU\/Linux Administration Tutorial For Beginners<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;GNU\/Linux Administration Tutorial For Beginners&#8221; &#8212; IT Tutorial\" src=\"https:\/\/ittutorial.org\/linux-administration-tutorial-for-beginners\/embed\/#?secret=wy92txL2Bk#?secret=Ksh1DVStQ7\" data-secret=\"Ksh1DVStQ7\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, I will explain\u00a0What is Rsync ( Remote Sync ) as nd How To Use Rsync to Sync Local and Remote Directories in this article.<\/p>\n","protected":false},"author":1,"featured_media":8467,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[3676,3679,2674,13735,3678,13730,13736,13732,3680,13734,3681,13733,13731,13737,3677,3675],"class_list":["post-8466","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-linux","tag-how-to-use-rsync-to-sync-local-and-remote-directories","tag-linux-rsync","tag-linux-tutorial","tag-man-rsync","tag-rsync","tag-rsync-remote-sync","tag-rsync-exclude","tag-rsync-examples","tag-rsync-linux","tag-rsync-ssh","tag-rsync-transfer","tag-rsync-ubuntu","tag-rsync-windows","tag-rsync-windows-10","tag-what-is-rsync-remote-sync-as-nd-how-to-use-rsync-to-sync-local-and-remote-directories","tag-what-is-rsync-remote-sync-in-linux"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/04\/rsync.jpg","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/8466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/comments?post=8466"}],"version-history":[{"count":4,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/8466\/revisions"}],"predecessor-version":[{"id":19547,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/8466\/revisions\/19547"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/media\/8467"}],"wp:attachment":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/media?parent=8466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/categories?post=8466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/tags?post=8466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}