{"id":98,"date":"2013-07-12T13:11:22","date_gmt":"2013-07-12T12:11:22","guid":{"rendered":"http:\/\/blog.prolin.pl\/?p=98"},"modified":"2013-07-12T13:11:22","modified_gmt":"2013-07-12T12:11:22","slug":"kopiowanie-duzej-liczby-plikow","status":"publish","type":"post","link":"https:\/\/blog.prolin.pl\/?p=98","title":{"rendered":"Kopiowanie du\u017cej liczby plik\u00f3w"},"content":{"rendered":"<p>When I have to copy a large amount of data, I usually use a combination of tar and rsync. The first pass is to tar it, something like this:<\/p>\n<pre>&lt;code&gt;# (cd \/src; tar cf - .) | (cd \/dst; tar xpf -)\r\n&lt;\/code&gt;<\/pre>\n<p>Usually with a large amount of files, there will be some that tar can&#8217;t handle for whatever reason. Or maybe the process will get interrupted, or if it is a filesystem migration, the you might want to do the initial copy before the actual migration step. At any rate, after the initial copy, I do an rsync step to sync it all up:<\/p>\n<pre>&lt;code&gt;# cd \/dst; rsync -avPHSx --delete \/src\/ .\r\n&lt;\/code&gt;<\/pre>\n<p>Note that the trailing slash on\u00a0<code>\/src\/<\/code>\u00a0is important.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I have to copy a large amount of data, I usually use a combination of tar and rsync. The first pass is to tar it, something like this: &lt;code&gt;# (cd \/src; tar cf &#8211; .) | (cd \/dst; tar xpf -) &lt;\/code&gt; Usually with a large amount of files, there will be some that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-98","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=\/wp\/v2\/posts\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=98"}],"version-history":[{"count":1,"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=\/wp\/v2\/posts\/98\/revisions"}],"predecessor-version":[{"id":99,"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=\/wp\/v2\/posts\/98\/revisions\/99"}],"wp:attachment":[{"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.prolin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}