{"id":2320,"date":"2017-02-10T00:42:55","date_gmt":"2017-02-10T00:42:55","guid":{"rendered":"http:\/\/pariswells.com\/blog\/?p=2320"},"modified":"2017-02-10T00:42:55","modified_gmt":"2017-02-10T00:42:55","slug":"synology-nas-rsync-to-copy-files-from-network-location-and-log","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/synology-nas-rsync-to-copy-files-from-network-location-and-log","title":{"rendered":"Synology NAS RSYNC to Copy files from Network Location and Log"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-2357 img-responsive\" src=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2017\/02\/StorageReview-Synology-RS8151-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/>Recently I wanted to copy a load of files from a server to a Synology NAS.\u00a0<\/p><p>You can use\u00a0Synology GUI to map a remote file using SMB with a username and password. You can then reference that folder for an RSYNC copy to do the inital sync then copy changes\u00a0<\/p><p>The RSYNC Command is below<\/p><p>rsync &#8211;archive &#8211;progress &#8211;verbose &#8211;inplace &#8211;exclude &#8216;*@SynoResource&#8217; &#8211;exclude &#8216;@eaDir&#8217; &#8211;exclude &#8216;*.vsmeta&#8217; &#8211;exclude &#8216;.DS_Store&#8217; &#8216;\/volume1\/Remote\/Dir\/&#8217; &#8216;\/volume1\/Dir\/&#8217; &gt;&gt; \/volume1\/DIR\/log1.txt 2&gt;&amp;1<\/p><p>Just to show you\u00a0&#8211;Archive is equals -rlptgoD (no -H,-A,-X) \u00a0, so it will overwrite newer files with the older ones so only use the above for the initial sync<\/p><p>To replicate the rest when the new volume is being used do<\/p><p>rsync -rlptgoDu &#8211;progress &#8211;verbose &#8211;inplace &#8211;exclude &#8216;*@SynoResource&#8217; &#8211;exclude &#8216;@eaDir&#8217; &#8211;exclude &#8216;*.vsmeta&#8217; &#8211;exclude &#8216;.DS_Store&#8217; &#8216;\/volume1\/Remote\/Dir\/&#8217; &#8216;\/volume1\/Dir\/&#8217; &gt;&gt; \/volume1\/DIR\/log1.txt 2&gt;&amp;1<\/p><p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Recently I wanted to copy a load of files from a server to a Synology NAS.\u00a0You can use\u00a0Synology GUI to map a remote file using SMB with [&hellip;]<\/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":[1740,1662,1321,1739,1741,1738,1217,1737],"class_list":["post-2320","post","type-post","status-publish","format-standard","hentry","category-research","tag-initial-sync","tag-log-files","tag-network","tag-new-files","tag-remote","tag-rsync","tag-smb","tag-synology"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/2320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=2320"}],"version-history":[{"count":3,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/2320\/revisions"}],"predecessor-version":[{"id":2358,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/2320\/revisions\/2358"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=2320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=2320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=2320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}