5 Best Command Line Archive Tools for Linux – Part 1

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

7 Responses

  1. Do not know how will the data center to backup data, but in my tests that have been mainly do backups of files on NTFS partitions I have come to the conclusion that whenever data is lost, there are files that are not copied by permission error I have not found how to solve this problem.

    My favorite tools are Rsync to back up files without compressing them. Ever I made a tar 50GB and then failed on some point after trying to unzip.

    And Tar uncompressed files to store long term and/or for divide them into DVDs.

    I definitely like to avoid compression to the maximum, or limit the size of compressed files according to my need is for now, the maximum size of a DVD.

    What are the most efficient ways to divide files into volumes ?, eg DVDs?

    These are my favorite uses of tar
    $ tar -cvf dvd-001.tar -ML 4480M –totals=SIGQUIT -C source

    I failed to understand understood the script indicated in the documentation for an automatic Tar multivolume.

    • Ravi Saive says:


      Thanks for sharing your real life backup scenarios with us, to be fact I never use tar command, when my data is larger than 15GB, because it takes lots of time in compressing the data or moving from one location to another. So, I always use rsync tool and recommend anyone who want to make a larger backups and it’s easier to make a mirrors of folders in local or remote. If you still want to split the files, better user split command as shown:

      # split -b 1024m file.tar.gz

      Read more about split command man pages..

    • Researching the multi volume tar, but I do not work for me

      $ vim new-volume.sh

      #! /bin/bash
      # For this script it’s advisable to use a shell, such as Bash,
      # that supports a TAR_FD value greater than 9.

      echo Preparing volume $TAR_VOLUME of $TAR_ARCHIVE.

      name=`expr $TAR_ARCHIVE : ‘\(.*\)-.*’`
      case $TAR_SUBCOMMAND in
      -c) ;;
      -d|-x|-t) test -r ${name:-$TAR_ARCHIVE}-$TAR_VOLUME || exit 1
      *) exit 1

      echo ${name:-$TAR_ARCHIVE}-$TAR_VOLUME >&$TAR_FD

      $ chmod 755 new-volume.sh

      $ tar -c -L650M -f cd-disk.tar -F new-volume Videos
      tar: new-volume: Cannot exec: No such file or directory
      tar: Error is not recoverable: exiting now
      tar: ‘new-volume’ command failed
      tar: Error is not recoverable: exiting now

      This creates the first tar file named cd-disk.tar 650 MB correctly, but then throws an error and not continuous creaando the multivolume.

      Some clue?, Thanks.

  2. Sir999 says:

    Why are you using this – >

    # gunzip file_name.tar.gz

    Can you not directly use this ->

    # tar -zxvf file_name.tar.gz

    • Avishek Kumar says:


      tar has a lot of option and is quite confusing too, at times. gunzip was a straight command. Moreover we mean to show the use of gunzip there.

      Hope you understand.

  3. Martin D says:

    Agreed – but that wasn’t the typo that I first saw.

    Take a look at the first sub heading – What is Archieved file? Exactly how that one got past the Spell Check I’m not sure.

  4. steve p. says:

    My pet peeve are typos:

    “shar has an advantage of being **plane** text ”

    I am sure you meant “plain text”, not “plane text”. I imagine “plane text” would be the magazines in the seat backs one jets.

    It was funny though, and very typical of the state of internet writing.

    Good article though.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.