• @[email protected]
    link
    fedilink
    152 months ago

    GNU tar is easy and straight-forward.

    It’s also completely incompatible with any other Unix, but then, what difference does it make is nobody can use them?

    • Eugene V. Debs' Ghost
      link
      fedilink
      English
      6
      edit-2
      2 months ago

      A more complex but more commonly used program is rsync

      rsync -rav /home/user/Documents /mnt/usbdrive is treated differently than rsync -rav /home/user/Documents/ /mnt/usbdrive which is different than rsync -rav /home/user/Documents /mnt/usbdrive/ which is different than rsync -rav /home/user/Documents/ /mnt/usbdrive/

      It’s a great tool for making copies onto drives, even servers. But man you have to double check how each folder path is laid out, otherwise it’ll write the files of one folder to the main drive, unorganized.

      • scratsearcher 🔍🔮📊🎲
        link
        fedilink
        English
        2
        edit-2
        1 month ago

        I recommend --dry-run and reading the stdout with human readable output -h. And dont use the --delete flag if you dont know what will happen 😓