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
5
votes
1 answer

Unable to compress 18GB file on Ubuntu Linux 18.04

It never happened to me before, but I'm unable to do a simple task such as compressing a 18.5 GB file on Ubuntu Linux 18.04 with any of the popular compressing tools such as gzip, bzip2 and 7z. All of them report a similar warning (not error)…
Claudi
  • 181
  • 6
4
votes
4 answers

Get extracted size from tgz before extracting

Is it possible to get the size that a tgz will take up once it's extracted, but without extracting it? I basically want tar tzf file.tgz with sizes beside them. I'm really looking for a total, so a solution that gives total size but not specific…
Steve Armstrong
  • 155
  • 2
  • 6
4
votes
3 answers

Compression on tape set..but at 2.27TB..end of space

I have a LTO6 tape inserted tapeinfo -f /dev/st0 Product Type: Tape Drive Vendor ID: 'QUANTUM ' Product ID: 'ULTRIUM 6 ' Revision: '4142' Attached Changer API: No SerialNumber: 'HU1322VW9U' MinBlock: 1 MaxBlock: 16777215 SCSI ID: 0 SCSI LUN:…
elbarna
  • 332
  • 3
  • 6
  • 15
4
votes
2 answers

tar: extract a member reliably with possible leading dot-slash

Let’s say I have two tar archives generated in slightly different way: $ tar tvf archive1.tar -rw-r--r-- root/root 567 2016-09-18 14:28 member1 -rw-r--r-- root/root 1696 2016-09-18 14:28 member2 $ tar tvf archive2.tar -rw-r--r-- root/root 567…
andrewsh
  • 141
  • 3
4
votes
2 answers

BackupPC Taking over 72 hours to backup 250GB's

I am using BackupPC to backup some workstations at the office. One workstations in particular has a sizable amount of data when compared to the rest, however, it's not that large in general (talking about 250ish GB's of actual data). BackupPC seems…
SnakeDoc
  • 570
  • 7
  • 24
4
votes
1 answer

Should I exclude all 'dev/' or only 'dev/pts/' during full server tar backup?

I'm curious why in all backup tutorials I found tar command excludes among others /dev/pts and not all of /dev/ Why would I want to backup anything under dev?
Lord_JABA
  • 161
  • 2
4
votes
1 answer

Filename encoding switched to UTF-8 by tar when untaring to Windows share

We have different Magento installations (webshop) that allows images to be added to a product freely. When an image is added to a product, the file is named in a specific way that sometimes encorporates special characters (for instance German…
Dabu
  • 359
  • 1
  • 5
  • 23
4
votes
3 answers

tar incremental backup is backing everything up, every time when used on the Dropbox directory

I made an incremental backup about 10 months ago (on Jan 27, 2013), creating a .snar metadata file. Now, when I try to make an incremental backup using tar --create --file=dropbox_incremental_1.tar --listed-incremental=dropbox_0.snar Dropbox the…
Cyclic
  • 41
  • 3
4
votes
1 answer

Ran out of disk space, how to tar without creating copy

I am at 98% of an 8GB SSD, and I have a 3 GB mysql data that I need to gzip and or tar and then download it, so then I can delete it. How can I tar or gzip the sql (or the mysql tables) so that that I don't have to make a copy of the 3GB file and…
ParoX
  • 302
  • 1
  • 7
  • 21
4
votes
1 answer

FreeBSD restore of /rescue

I'm running a restore from a previous backup of my FreeBSD system, and run into trouble when restoring / (excluding mount-points). The problem is that /rescue fills the / partition (to the extent that I can't restore my entire / partition) by taking…
poplitea
  • 457
  • 1
  • 5
  • 16
4
votes
1 answer

Is it really impossible to prepend data to a tape?

I would like to keep a log of files that I am writing to tape using dd or tar for each file. Then at the end of the run, prepend that log to the beginning of the tape using dd. If it works, I can see the contents of any tape by reading the first few…
worfly
  • 41
  • 3
4
votes
5 answers

Cannot set target directory when extracting an archive using tar

I'm trying to extract a tar archive to a specific directory. I've tried using -C flag but it doesn't work as expected. Here is the commandline I'm using tar xvf myarchive.tar -C mydirectory/ This gives me a following error: tar: file -C: not…
palto
  • 209
  • 3
  • 12
4
votes
3 answers

tar gzip slowing down server

I have a backup script that: compress some files generate md5 copy the compressed file to another server. the other server finishes comparing MD5 (to find copy errors). Here it's the core script: nice -n 15 tar -czvf $BKP $PATH_BKP/*.* \ | xargs…
Josir
  • 143
  • 1
  • 5
4
votes
3 answers

Combine two or more compressed files

I have 2 gz files those I need to merge into one -- that is to say I want to combine two .gz files into one such that when I extract the combined file I get a single file containing the concatenation of the original input files. time join <(zcat…
shantanuo
  • 3,579
  • 8
  • 49
  • 66
4
votes
4 answers

Ultrium 3 tape drive shoe-shining, 3Mb/s: and it's not the cable

I have a HP 960 Ultrium 3 tape drive. Since I got it, (second hand, £90) I've been experiencing shoe-shining. Writing with tar in Linux, I average about 3Mb/s write speed. I've tried replacing both the SCSI card and the cable now, both of which made…
mowsala
  • 43
  • 4