Questions tagged [tar]

An archiving program for storing and retrieving files as a collection with support for data compression.

An archiving program for storing and retrieving files as a collection with support for data compression. It is mainly used for compacting multiple files into single one, for easy transporting or compression.

Its name comes from Tape ARchive

2690 questions
1
vote
5 answers

Mounting and untar'ing a file in Java

I'm currently working on a web application that involves mounting a drive and extracting a tar.gz file, all in Java. Since the application runs in a linux environment, I figured I'd try using unix commands like "mount" and "tar". Runtime runtime =…
Matthew
  • 6,356
  • 9
  • 47
  • 59
1
vote
2 answers

Install MySQL on Mac OS X Lion?

I have downloaded the MySQL community server and extracted the files from the .tar file. But how do I install it? I simply cannot find a easy way to to this, or any method for that matter. Or is it already installed after tar xvf MySQL.tar? And…
nicolas
  • 2,560
  • 2
  • 17
  • 16
1
vote
1 answer

Installation a tool on linux having tar.uue extension

I have to install one tool on linux platform which have tar.uue (genscanlinux.tar.uue) extension. I am unable to unzip it. Kindly tell me how can i unzip and install it? Thanks in advance :)
bioinformatician
  • 364
  • 1
  • 12
  • 27
1
vote
3 answers

Parallel processing of untar/remove in unix shell script

Question: I want to untar a tarfile which has many tar files within itself and remove the files in all the tar files and I want all of these processes to run in parallel in Unix bash scripting. Conditions: The script should return an error if any…
beck03076
  • 3,268
  • 2
  • 27
  • 37
1
vote
1 answer

tar: This does not look like a tar archive

I split a huge folder: tar cvpf - somedir | split -b 50000m I then transfered split files to another server and merge it: cat x* > somedir.tar.gz but when I tried to extract the file it shows errors: tar xvf tar xvf somedir.tar.gz tar: This does…
Edward Huang
  • 53
  • 3
  • 7
1
vote
1 answer

how to undo tar operation?

I used tar -cvf sample_directory/* and didn't specify file.tar.gz. So the Makefile within the folder is in some unreadable format. is there a way to recover my Makefile?
Anitha Raj
  • 11
  • 1
  • 2
1
vote
1 answer

Does `tar /home/user/file` change the /home owner to root?

I'm trying to back up some key files and directories of a machine, as root, including some of the /home data, hand-picking some files to reduce the tarball size. Everything is OK for the most part, since most files are owned by root anyway, but say…
ezequiel-garzon
  • 3,047
  • 6
  • 29
  • 33
0
votes
1 answer

tar all files to a directory

The following will extract the files in /root/ directory. But it also creates the parent directories under root. What I need is that the files should be exactly under root folder and not in /root/data/mysql/... # tar -xvf company_raw_2012-02-22.tgz…
shantanuo
  • 31,689
  • 78
  • 245
  • 403
0
votes
2 answers

Configure Ant to Use GNU Tar on Mac

On my Mac, tar defaults to BSD tar. $ tar --version bsdtar 2.8.3 - libarchive 2.8.3 There is a GNU tar that I can invoke with gnutar. $ gnutar --version tar (GNU tar) 1.17 Copyright (C) 2007 Free Software Foundation, Inc. ... With Ant Tar task,…
moey
  • 10,587
  • 25
  • 68
  • 112
0
votes
1 answer

tar the files in a directory and put the archive in another directory

I'm trying to tar all of the files in a directory (echo 1) to a tar archive called [directory name].tar in the archive directory (second echo). Is this correct ? #!/bin/bash #Author #Josh ++++++++++++++++++++++++++ echo "Please enter the name of a…
user1221987
  • 121
  • 1
  • 2
  • 5
0
votes
1 answer

What is the 7z or zip equivalent of "tar cf resulting.tar -C dir1/dir2 dir-to-zip"?

Basically do either zip or 7za, 7z have a -C type option? I know usually you would just cd to the directory but that's not an option here.
jonas789
  • 219
  • 1
  • 3
  • 13
0
votes
5 answers

java test - package a java app for running on another linux box

I have a Java test app. The code sample for the import section follows. I created a quick/short bash script to build the app/run the app. Everything works. The Java test runs. I'm trying to figure out how to quickly/easily "package" the Java app…
tom smith
  • 1,035
  • 7
  • 23
  • 39
0
votes
2 answers

Using libtar to compress a directory

I have this code that I found somewhere on stackoverflow that uses libtar and libbz2 to compress a directory: #include #include #include #include #include using namespace std; int main(int argc,…
Zajcev
0
votes
1 answer

Cron tar with file filtering

I need to change the following cron so that it only tars images with a pattern of: l_*.jpg What modifications does my current cron require? 0 4 * * 1 tar vcf /home/XXXXXX/public_html/backups/monday_backup.tar /home/XXXXXX/public_html/images/products…
bikey77
  • 6,384
  • 20
  • 60
  • 86
0
votes
3 answers

watch .tar file for changes, and if it does, extract, build, and run

I am trying to watch a tar file for changes, and if it does, extract the files, cd into the dir, and build, and then run. What I have is as follows: while [ 1 ] do checksum=`md5sum kinect.tar` sleep 10 newsum=`md5sum kinect.tar` if […
tekknolagi
  • 10,663
  • 24
  • 75
  • 119