Comments on: 5 Best Command Line Archive Tools for Linux – Part 1 https://www.tecmint.com/command-line-archive-tools-for-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 13:31:44 +0000 hourly 1 By: jesusguevarautomotriz https://www.tecmint.com/command-line-archive-tools-for-linux/comment-page-1/#comment-753958 Sun, 21 Feb 2016 17:56:17 +0000 http://www.tecmint.com/?p=6650#comment-753958 In reply to Jesusguevarautomotriz.

Researching the multi volume tar, but I do not work for me
http://www.gnu.org/software/tar/manual/html_node/Multi_002dVolume-Archives.html

$ 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
esac

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.

]]>
By: Ravi Saive https://www.tecmint.com/command-line-archive-tools-for-linux/comment-page-1/#comment-751017 Mon, 15 Feb 2016 05:52:17 +0000 http://www.tecmint.com/?p=6650#comment-751017 In reply to Jesusguevarautomotriz.

@Jesus,

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..

]]>
By: Jesusguevarautomotriz https://www.tecmint.com/command-line-archive-tools-for-linux/comment-page-1/#comment-750730 Sun, 14 Feb 2016 08:00:23 +0000 http://www.tecmint.com/?p=6650#comment-750730 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.

]]>
By: Avishek Kumar https://www.tecmint.com/command-line-archive-tools-for-linux/comment-page-1/#comment-234100 Thu, 07 Aug 2014 09:47:11 +0000 http://www.tecmint.com/?p=6650#comment-234100 In reply to Sir999.

sir999

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.

]]>
By: Sir999 https://www.tecmint.com/command-line-archive-tools-for-linux/comment-page-1/#comment-233984 Thu, 07 Aug 2014 06:39:10 +0000 http://www.tecmint.com/?p=6650#comment-233984 Why are you using this – >

# gunzip file_name.tar.gz

Can you not directly use this ->

# tar -zxvf file_name.tar.gz

]]>