Remix.run Logo
▲ pasc1878 an hour ago

Use rsync instead

▲5555watch an hour ago | parent | next [-]

In my minimal attempts to use rsync, I always find examples where they always use a ton of flags alongside the locations. I'm not gonna learn those flags if cp can do it intuitively and with minimal extra commands. Maybe it's just me.

▲CoastalCoder 29 minutes ago | parent | next [-]

Not just you.

Also, I always have this vague fear that I'll rsync in the wrong direction, or accidentally blow away unrelated files in rsync's efforts to fully synchronize two directories (can't remember if this is a valid concern).

I'm sure these concerns would go away if I used it regularly, but I just don't. ‘cp' or ’scp’ almost always meet my needs.

Kinda like the way people are probably right that I should learn to use ’awk’, but I just can't muster the motivation.

▲groestl 28 minutes ago | parent | prev [-]

Do it once, make it your muscle memory - it's really hard for me to learn things by heart, but even I could do it :), and then you can forget about scp as well

▲trucks-refinish an hour ago | parent | prev [-]

rsync unfortunately doesn't do relinking at all, so I can't use it as a generic replacement for cp.

▲groestl 32 minutes ago | parent [-]

Relinking?

▲rincebrain 28 minutes ago | parent [-]

I assume they typoed reflinking, a way of doing CoW-based copying of file contents.

▲groestl 5 minutes ago | parent [-]

I was under the impression it could do that, I think I build a snapshotting mechanism using this.