<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Cp on tech.notes</title>
    <link>https://newblog.utzer.de/tags/cp/</link>
    <description>Recent content in Cp on tech.notes</description>
    <generator>Hugo</generator>
    <language>de</language>
    <lastBuildDate>Tue, 11 Jul 2023 09:36:53 +0000</lastBuildDate>
    <atom:link href="https://newblog.utzer.de/tags/cp/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Linux cp command with reflink</title>
      <link>https://newblog.utzer.de/2023/07/11/linux-cp-command-with-reflink/</link>
      <pubDate>Tue, 11 Jul 2023 09:36:53 +0000</pubDate>
       <guid isPermaLink="false">https://tech.utzer.de/?p=152</guid> 
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cp -pRv --reflink=auto /source/folder /destination/folder
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;copy files and directories&lt;br&gt;
-p same as &amp;ndash;preserve=mode,ownership,timestamps&lt;br&gt;
-R, -r, &amp;ndash;recursive&lt;br&gt;
copy directories recursively&lt;br&gt;
-v verbose, show what is going on.&lt;/p&gt;
&lt;p&gt;&amp;ndash;reflink[=WHEN]&lt;br&gt;
control clone/CoW copies.&lt;/p&gt;
&lt;p&gt;This just copied 169GB of files in 20 seconds. This only works on supported filesystems, so for example by &amp;ldquo;#Btrfs, #CIFS, #NFS 4.2, #OCFS2, #overlayfs, and #XFS&amp;rdquo;. See &lt;a href=&#34;https://unix.stackexchange.com/a/631238&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Explainshell tells you &lt;a href=&#34;https://explainshell.com/explain?cmd=cp+-pRv+--reflink%3Dauto+%2Fsource%2Ffolder%2Ffile+%2Fdestination%2Ffolder%2Ffile&#34;&gt;this&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
