3.5

tar: a slop-free alternative to rsync

Free & Open SourceInternet & ProtocolsTech Criticism

Drew DeVault responds to rsync being labeled 'slopware' by proposing tar piped over SSH as a simpler alternative for transferring files between hosts. He walks through the basic tar commands needed to replicate rsync's most common use case, arguing that tar's path handling rules are easier to reason about than rsync's trailing-slash quirks. He acknowledges tar doesn't handle incremental syncing but finds it sufficient for full file transfers. He also wrote a small wrapper tool called rtar to streamline the workflow.

Standard Unix tools like tar and SSH, composed together, can replace more complex purpose-built tools while being easier to reason about.
  • 6

    So apparently rsync is slop now.

  • 3

    tar + ssh can definitely accomodate the use case of "transmit all of these files over an SSH connection to another host".

  • 3

    I know tar is infamously difficult to remember how to use. Honestly, I kind of feel that way about rsync, too.

  • 4

    With rsync, to control where the files end up you have to memorize some rules about things like whether or not each path has a trailing slash.

  • 2

    With tar, the rules are, in my opinion, a bit easier to reason about.

  • 3

    Of course, you could just use scp, but this fits into my brain better.

casual, practical, opinionated