Questions tagged [tar]

GNU tar creates and manipulates archives which are actually collections of many other files; the program provides users with an organized and systematic method for controlling a large amount of data.

GNU tar creates and manipulates archives which are actually collections of many other files; the program provides users with an organized and systematic method for controlling a large amount of data. The name “tar” originally came from the phrase “Tape ARchive”, but archives need not (and these days, typically do not) reside on tapes.

347 questions
3
votes
1 answer

Device busy when reading from tape drive with tar

When I try to read a tar from tape with tar tvbf 2048 /dev/nst0, it returns: tar: /dev/nst0: Cannot read: Device or resource busy tar: At beginning of tape, quitting now tar: Error is not recoverable: exiting now And lsof | grep st0 returns…
3
votes
1 answer

Why am I getting different SHA-1 checksums for tar of identical mongodump backups?

I am trying to backup my MongoDB database and check for changes with a SHA-1 checksum. The problem is that the checksum is not the same. $ mongodump --quiet --db backup --out . $ tar -cf backup1.tar backup $ rm -r backup $ sha1sum…
Dawei67
  • 63
  • 4
3
votes
4 answers

Would rsync be better than tar, wget and untar?

I am migrating to a new server and, as well as html/php files, have a directory which contains around 90,000 files totalling 24GB in size which needs to be moved. When I did a test migration, I used tar to create a tarball then wget on the new host…
bhttoan
  • 650
  • 3
  • 15
  • 27
3
votes
1 answer

Cannot extract .tar.gz archive in bash

I am in my /w dir and I saved the .tar.gz archive from the MediaWiki server like this: $ cd /public_html/w $ wget releases.wikimedia.org/mediawiki/1.24/mediawiki-1.24.1.tar.gz But once I try to extract it: $ tar -xvzf mediawiki-1.24.1.tar.gz It…
PowerUser
  • 133
  • 4
3
votes
1 answer

tar wildcards in files-from

Trying to run tar with --files-from. I have a file files.txt that contains /dir1/files*.txt However it complains that /dir1/files*.txt does not exist, but ls proves that it does. I tried to also add --wildcards however same result. How do I…
Felipe Alvarez
  • 193
  • 2
  • 12
3
votes
3 answers

bash gunzip | untar multiple files in separated folders

I have a list of .tar.gz files with the same inner folder structure and I'd like to batch gunzip | untar a single file from them in separated…
sergei
  • 33
  • 1
  • 6
3
votes
1 answer

untar all files in specific directory but not the directory

I think this may be a simple question but cannot find the answer. I am trying to extract some files from a tar file. These files are in a directory within the tar file. I tried the following however this didnt work tar -zxvf filename.tar.gz…
dgibbs
  • 661
  • 2
  • 11
  • 22
3
votes
4 answers

taring vmdk files does not preserve thinness

we have NFS storage, where we store our backups.. we manipulate with them from linux machine where the nfs is also mounted.. So, for example thin provisioned thin.vmdk disk is on linux seen as thin.vmdk and thin-flat.vmdk. We want to archive and…
Jakub Žitný
  • 165
  • 1
  • 4
3
votes
2 answers

Deduplication of tar archives

Now I'm trying to configure ZFS with deduplication on my linux backup server and have a question. For example I have 1k files in backup1.tar and 1k same files and 1 new in backup2.tar. This files will be deduplicated or not? As I can see it doesn't…
cpt.Buggy
  • 279
  • 2
  • 10
3
votes
1 answer

tar Exiting with failure...?

i'm untaring with this command tar -pxvzf filename.tar.gz an everything seems to be going fine but, it unexpectedly exits with the error below. Is there a reason why I'm receive this error and / or prevent it? tar: Exiting with failure status due to…
acctman
  • 214
  • 1
  • 5
  • 11
3
votes
4 answers

Linux - Bare Metal Restore from a Tar file

I make a backup of my Debian webserver on a daily basis. A full backup on Sunday, and differentials each other day of the week. The backup is made with Tar. I backup the whole system into the Tar file. If the HDD on my webserver dies, I got all my…
Jonathan Rioux
  • 1,938
  • 6
  • 33
  • 57
3
votes
4 answers

How to list the files on a tape with tar?

On a HP-UX OS I have a backup on a magnetic tape created from the SAM. Everywhere I read the instructions to list-verify the contents of the tape is to use the TAR program: #tar tvf /dev/rmt/[tapefile] I've created a new directory /tape with 777…
Spirit
  • 1,154
  • 8
  • 25
  • 45
3
votes
3 answers

Use wildcard in tar with -T option

I have a backup script that has this syntax "tar -czvf backup.tar.gz -T filelist" In this filelist, I'm listing folder to backup, but I also need to backup every file that has a given extension like "*.jpeg" The file name are changing everyday,…
Bastien974
  • 1,896
  • 12
  • 44
  • 62
3
votes
1 answer

verify integrity of encrypted tar

I'm using tar along with openssl to create encrypted tar archives of some large directories (about 30GB). What is the possibility of corruption in this process, and how would I verify that the encrypted tar archives are not corrupted? This is the…
pzod
  • 117
  • 2
3
votes
1 answer

Why does my external USB hard drive refuse to unmount after transferring large tar files to it?

I recently need to transfer large tar files to an external USB hard drive from one Red Hat ES 5 server to another (neither with network connectivity). Originally I was trying to move ~90gig tar file from the server to the external drive. This…
hsatterwhite
  • 332
  • 2
  • 5
  • 14