{"id":1993,"date":"2013-04-26T15:48:42","date_gmt":"2013-04-26T07:48:42","guid":{"rendered":"http:\/\/rmohan.com\/?p=1993"},"modified":"2013-04-26T15:48:42","modified_gmt":"2013-04-26T07:48:42","slug":"rsync-tips","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=1993","title":{"rendered":"Rsync Tips"},"content":{"rendered":"<p>Synchronizing data beetween two directories<\/p>\n<p><strong># rsync -rv &lt;src&gt; &lt;dst&gt; \u2013progress<\/strong><\/p>\n<p>Rsync two directories with filtered extensions<\/p>\n<p><strong># rsync -rv \u2013include \u2018*\/\u2019 \u2013include \u2018*.txt\u2019 \u2013exclude \u2018*\u2019 srcDir\/ desDir\/<\/strong><\/p>\n<p>Rsync a directory excluding pesky .svn dirs<\/p>\n<p><strong># rsync -rv \u2013exclude .svn src\/dir\/ dest\/dir\/<\/strong><\/p>\n<p>Sync Source Directory to Destination Directory<\/p>\n<p><strong># rsync -avzE -e\u00a0 \u2013process \/var\/www\/html\/deploy root@X.X.X.X\/backup\/testing\/project<\/strong><\/p>\n<p><strong># rsync -avzE\u00a0 \/var\/www\/html\/deploy root@X.X.X.X:\/\/backup\/testing\/project\/<\/strong><\/p>\n<p><em><strong>src<\/strong><\/em>\u00a0:- source<br \/><em><strong>dst<\/strong><\/em>\u00a0:- destination<br \/><em><strong>-v<\/strong><\/em>\u00a0:- increase Verbosity<br \/><em><strong>-a<\/strong><\/em>\u00a0:- archive mode<br \/><em><strong>-r<\/strong><\/em>\u00a0:- recurse into directories<br \/><em><strong>-e<\/strong><\/em>\u00a0:- Specify remote shell to use<br \/><em><strong>-r<\/strong><\/em>\u00a0:- for recursive (if you want to copy entire directories)<br \/><em><strong>\u2013process<\/strong><\/em>\u00a0:- to show a progress bar)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Synchronizing data beetween two directories<\/p>\n<p># rsync -rv &lt;src&gt; &lt;dst&gt; \u2013progress<\/p>\n<p>Rsync two directories with filtered extensions<\/p>\n<p># rsync -rv \u2013include \u2018*\/\u2019 \u2013include \u2018*.txt\u2019 \u2013exclude \u2018*\u2019 srcDir\/ desDir\/<\/p>\n<p>Rsync a directory excluding pesky .svn dirs<\/p>\n<p># rsync -rv \u2013exclude .svn src\/dir\/ dest\/dir\/<\/p>\n<p>Sync Source Directory to Destination Directory<\/p>\n<p># rsync -avzE -e \u2013process \/var\/www\/html\/deploy root@X.X.X.X\/backup\/testing\/project<\/p>\n<p> [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1993"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1993"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1993\/revisions"}],"predecessor-version":[{"id":1994,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1993\/revisions\/1994"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}