{"id":1033,"date":"2020-01-07T16:12:38","date_gmt":"2020-01-07T03:12:38","guid":{"rendered":"https:\/\/www.ronella.xyz\/?p=1033"},"modified":"2020-01-07T16:12:38","modified_gmt":"2020-01-07T03:12:38","slug":"using-rsync-to-sync-a-local-directory-to-another-local-directory","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=1033","title":{"rendered":"Using Rsync to Sync a Local Directory to Another Local Directory"},"content":{"rendered":"<p><strong>Syntax<\/strong><\/p>\n<p>To sync some of your <strong>local directories<\/strong> to another <strong>local directory<\/strong>, you can use the following syntax:<\/p>\n<pre style=\"white-space: pre;\">rsync -av -L --delete &lt;DIR1&gt;[[ &lt;DIR2&gt;] &lt;DIRn&gt;] &lt;DESTINATION_DIR&gt;<\/pre>\n<table>\n<tbody>\n<tr>\n<td><strong>Token<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>DIR1, DIR2, DIRn<\/td>\n<td>These are the local directories you've wanted to be synced. Only DIR1 is required and the rest are optional.<\/td>\n<\/tr>\n<tr>\n<td>DESTINATION_DIR<\/td>\n<td>The destination directory on the remote machine.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Example<\/strong><\/p>\n<pre style=\"white-space: pre;\">rsync -av -L --delete \/var\/log\/ \/data\/log\/<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax To sync some of your local directories to another local directory, you can use the following syntax: rsync -av -L &#8211;delete &lt;DIR1&gt;[[ &lt;DIR2&gt;] &lt;DIRn&gt;] &lt;DESTINATION_DIR&gt; Token Description DIR1, DIR2, DIRn These are the local directories you&#8217;ve wanted to be synced. Only DIR1 is required and the rest are optional. DESTINATION_DIR The destination directory on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[55,28],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1033"}],"collection":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1033"}],"version-history":[{"count":2,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1033\/revisions"}],"predecessor-version":[{"id":1036,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1033\/revisions\/1036"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}