‹ BackHN Continuity

Thread

cp: -r or -R?

126 points · 110 comments · zdw

  1. mkl · · focus · HN ↗
    -a

    Not sure why you wouldn't want to preserve timestamps, links, etc. by default.

    1. emmelaich · · focus · HN ↗
      old cp didn't have `-a`

      Anyway, just use rsync.

      1. dspillett · · focus · HN ↗
        > just use rsync

        You still need to specify --archive (or --times for the individual option) to preserve mtime in the target copy.

        But yeah, I tend to rsync more than I cp.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.