‹ BackHN Continuity

Thread

cp: -r or -R?

127 points · 110 comments · zdw

  1. pasc1878 · · focus · HN ↗
    Use rsync instead
    1. trucks-refinish · · focus · HN ↗
      rsync unfortunately doesn't do relinking at all, so I can't use it as a generic replacement for cp.
      1. groestl · · focus · HN ↗
        Relinking?
        1. rincebrain · · focus · HN ↗
          I assume they typoed reflinking, a way of doing CoW-based copying of file contents.
          1. groestl · · focus · HN ↗
            I was under the impression it could do that, I think I build a snapshotting mechanism using this.
            1. Flimm · · focus · HN ↗
              rsync does not have the ability to copy a file using the filesystem's copy-on-write feature. This is unlike cp, which has the --reflink flag. Here's the bug report on GitHub which the developers closed as "won't fix for now":

              <a href="https:&#x2F;&#x2F;github.com&#x2F;RsyncProject&#x2F;rsync&#x2F;issues&#x2F;119#issuecomment-3769076742" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;RsyncProject&#x2F;rsync&#x2F;issues&#x2F;119#issuecommen...

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.