An archive file format (and the program that reads it) commonly used on Unix and Linux.

learn more… | top users | synonyms

1
vote
2answers
39 views

Remote backup via SSH

I have two computers, my local and remote. I want to backup remote server with tar command via ssh but saving tar file on local computer. Is it possible?
0
votes
0answers
31 views

Need to create .tgz file in Windows

I need to create a .tgz file - NOT a tar.gz, a .tgz specifically - in Windows. I've tried 7zip, Peazip, and ProgramArchiver, but they all create .tar.gz files. I've also tried running 7z from the ...
1
vote
2answers
33 views

Spaced string variable as command parameter inside shell script

How can I store a spaced string in a variable and use it as a command parameter inside a shell script? This is what I'm trying to do: DESTINATION='/mnt/External Harddisk' ...
0
votes
0answers
21 views

How to create a VM from archived linux?

There is a full backup of a 64-bit ubuntu called fullbackup.tar.gz which needs to become a live virtual machine. Is that even possible? VirtualBox file is preferred.
2
votes
1answer
27 views

Make tar archive only files without directories (equivalent of zip -D -j)

I want to tar (and gzip) files without directories and do not store directory paths. I want only flat files in my archive. For example if I'll do something like this: tar -czf archive.tgz ...
0
votes
1answer
53 views

Restoring a website from a tar.gz file

I have a backup of a website that I created using the tar command below: tar -cvpzf backup.tar.gz /var/www/vhosts/example.com/httpdocs I see that in the archive file, it has saved the entire path ...
0
votes
1answer
13 views

tar folders older from last week

I am trying to create a script that need to archive text logs from last week. Basically we have a path where we have folders on date as follows, Each folder contains csv files containing data for ...
0
votes
1answer
18 views

Does specifying the compression engine to tar directly actually use less intermediate disk space than tarring first and then compressing?

When I use tar to archive a directory and then compress it separately using e.g. xz, there will be a point where I have three files on my system - dir, dir.tar and dir.tar.xz. As soon as the ...
0
votes
1answer
28 views

Which is the preferred approach to pass command/script arguments to a log file?

Generally, I am wondering how I can pass the arguments from a terminal command to stdout. More specifically, I am using tar as part of my backup process and I would like the parameters (especially ...
0
votes
0answers
10 views

How to compile predictive mode using Gow instead of Cygwin on Windows?

I want to install the predictive mode for latex in Emacs editor. Since I have windows so I should have the make utility available. I don't want to install the fussy Cygwin (over 100MB), but the much ...
1
vote
1answer
45 views

Why tar hangs failing to extract a file

I am using a Solaris 11 system and am trying to extract from a tar file which I know to be OK, but when I try to extract it, tar hangs. I don't get any feedback from tar. What areas of Solaris should ...
0
votes
2answers
62 views

Downloading large amount of files from unix server

there are about 7000000 files in a single directory summing up to a total of 650 GB. (listing them alone is not even possible) what options do i have to download these? i was thinking of using tar ...
0
votes
0answers
48 views

How do I get file permissions to carry over from Windows to Linux via Python?

I recently replaced an outdated packaging script written as a batch file with a new one written in Python. We build/package the software on a Windows machine, then deploy it to a Linux machine. More ...
1
vote
1answer
48 views

tar complains “No such file or directory”

I'm using bash on Windows (distributed along with msysgit) to zip log files - one archive per date. Problem is, following script does not work and I have no idea why. Cut is here to get part of the ...
0
votes
1answer
1k views

How to install u-torrent from a tar.gz on Kali Linux?

I am trying to install u-torrent, from utserver.tar.gz file. I have used the commands: root@kali:~# cd ~/Desktop root@kali:~/Desktop# ls [kickass.so]easy.recovery.essentials.pro.win.8.7.xp.torrent ...
0
votes
2answers
64 views

Find files then tar with wildcard

I have a series of files called: 2014111test.log 2014111test.log.stuff 2014111test.log.flibble 2014115test.log 2014115test.log.stuff 2014115test.log.flibble I want to find all the log files over a ...
1
vote
1answer
54 views

How to extract single file from large tar/tar.gz file

What I want to do is to extract a single file from a huge tar file, instead of extracting the whole tar. I am using RHEL 6.4 I Googled it and tried the following: tar --extract --file=some.tar ...
2
votes
2answers
126 views

Tar archive won't unpack – “Path contains '..'”

The name of the file 2014-12-12 04-00-01.tar. I executed the command: tar xvf 2014-12-12\ 04-00-01.tar The output is many lines of the form: x ../server/: Path contains '..' And then a few of ...
0
votes
2answers
36 views

tar xvf with * failed on some platform like HP-UX or SuSE

tar xvf archive.tar *.txt failed on HP-UX and SuSE. How can I extract only files matching *.txt for a tar archive ? I could use --wildcards on SuSE but this not work on HP-UX I'm on HP-UX 11iv2 ...
0
votes
0answers
18 views

GNU tar treatment of symbolic link timestamp

I need to use (GNU) tar to move a directory tree from one Linux machine to another, and I want symbolic links to remain symbolic links. I did it with just the usual command line options (cf and xf). ...
4
votes
1answer
169 views

Why does the ls command require a dash before its parameters but for tar command, the dash is optional?

I am new to Ubuntu and I am trying hard to understand the command line. When I want to see the contents of a tar file I use: tar tf tarfile.tar But when I want to see a listing of all file if I ...
0
votes
3answers
104 views

Unrecognized archive format when trying to extract content from a TAR archive

I have an uncompressed TAR file created on Linux. If I use less to view the file I can see all the data; mostly code files. However if I try to decompress it I get the following error: tar: ...
1
vote
1answer
42 views

cpio VS tar - what the best archive solution in order to compress hundred of directories to one file

in my Linux machine under /var/Recording directory. I have hundreds directories and each directory there are also directories and files include hard links and soft link . I want to compress all ...
1
vote
1answer
1k views

Extracting a tar.gz file returns, “This does not look like a tar archive.”

I have a tar.gz file and I want to extract it using terminal. I used following commands: tar tvzf ldtp_3.5.0.orig.tar.gz and tar -xvzf ldtp_3.5.0.orig.tar.gz. However, I get the same result for both ...
2
votes
1answer
72 views

recreating just the uid/gid unix permissions from tar

I was restoring a root partition based on a tar backup from system-rescue-cd. It went ok except the uid/gid mappings on the system-rescue-cd disk did not match the ones on this debian system that I ...
0
votes
2answers
25 views

tar command does not list content of tar package with -t option

I am trying to list the content of the tar archive with the following command tar -t "filename".tar But the shell works on this one forever without any output message. I did a research on this ...
0
votes
1answer
67 views

How to tar a directory preserving not only permissions, but ownership too

I have to compress a directory using tar.gz preserving not only permissions, but ownership/groups too. And, in this directory there are many files that belong to many users.
0
votes
1answer
51 views

Search through tar files for a pattern and print the full path of what's found

I have directory tree with many tar files. Each tar file contains many other files. I want to search through all the tar files for a given pattern, and print the full path of any files within a tar ...
4
votes
1answer
66 views

Tar using progress bar and handling multi-volumes

I'm trying to create a tar of a large LVM volume onto multiple external drives. That part is solved. Now, because it is a LONG process, I'd like a progress bar. From the excellent articles here, ...
1
vote
1answer
41 views

Tar not preserving permissions on extract

I'm backing up a users folder as root using tar tar -czf /mnt/disk/cloud.tar.gz -C /home/cloud/ . In /mnt/disk I do a test tar ztvf cloud.tar.gz and it shows -rw-r--r-- cloud/cloud 14 ...
-2
votes
1answer
43 views

Can't download hadoop

Am I taking crazy pills or is it impossible to download hadoop right now? I am looking at http://www.apache.org/dyn/closer.cgi/hadoop/common/ to find mirrors for it and absolutely none of them work ...
2
votes
1answer
45 views

Common tips for compressing/extracting large folders? [closed]

Are there any common tehniques or issues I need to be aware that can speed up or make more robust the process of compressing/uncompresing large (>60gig) folders with many (>3000 files) elements ...
1
vote
1answer
91 views

tar reverse of '--to-command', or: compressing tar entries individually, or: tar with plenty of large files

I would like to create tar gzip archive, but do it the reverse manner of what is most commonly done -- have the files in the archive be compressed individually rather than compress the entire archive: ...
0
votes
1answer
63 views

Execute “tar -cf” command from “send to” batch file to .tar.gz a file quickly

I installed the GNU tar for windows to speed up tar-ing files so I don't have to mess around opening 7zip twice to tar then gzip a file. To speed up the process even more, I tried to write a send-to ...
0
votes
1answer
54 views

archiving files without timestamp

I need to archive some files deterministically, so that I get the same archive file if the content of the files is the same. I need this for testing for equality of the archive files later. however, ...
0
votes
1answer
10 views

Script for Folder transfer from DEV server to TEST server

can you pls provide me the script which should like below Transfer the tar zip directory from dev server to test server Also it shoud check for chekcsum , junk charcter in the directories once ...
1
vote
1answer
35 views

Deleting unpacked tar.gz files after unpacking incorrectly

I recently unpacked a set of backup files in RHEL3 - 2.4kernel with tar via: tar -xvf backupfile It started to error out a bunch and I aborted thinking that maybe it was a gzip instead. Unpacking ...
1
vote
2answers
51 views

how to use tar '--remove-files' option inside find -exec?

I've got a number of very large log files which I want to compress individually so I can't use xargs or pipe stdout to get a huge compressed file. I'm trying to do this: find . -mtime +1 -iname ...
0
votes
0answers
48 views

How do I start an application after running the installation script?

I've been looking around the internet and I can't find a direct answer to this. I've install Komodo IDE by downloading the .tar.gz file (from http://komodoide.com/download/) and using the tar command ...
0
votes
1answer
45 views

Target directory structure for tar different than original directory structure

Is there any way to set a different target directory structure than the orignial directory structure the tar archive was created from without creating it by hand? For example, I have many files in a ...
0
votes
1answer
53 views

Does Killing A Bash Process Affect Children Processes [duplicate]

The Scenario I'm automating backups via a bash script. The script is executed via cron. The script archives directories recursively using tar, and then rsync's them to the remote host. Here is a ...
0
votes
1answer
50 views

tar: backup before overwriting

The cp command has a feature not well-known to everybody that it can backup before overwriting the target file. Does tar has such feature as well during restoring? I saw an option of --backup, but ...
1
vote
1answer
24 views

What happens when directory contents change during tar?

I have a large directory that I'm taring. It takes a long time and I was wondering what happens when the directory contents change whilst tar is still doing its thing.
0
votes
2answers
51 views

Determine type of archive file in Linux

I have an archive file with .tar.gz as extension grabbed from http://www.oracle.com (it is the Java Runtime Environment). I tried to decompress it using tar -xvf and tar -zxvf and it says gzip: stdin: ...
0
votes
3answers
57 views

decompressing a 50 GB archive to a 100 GB drive

So I moved hosts today and I put all content from the old host into a single archive. The archive took 20 minutes to compress and one hour to transfer the tar file to the new host (Linux CentOS ...
0
votes
0answers
15 views

tar: re-extract files with a different size on disk

I have some gigantic tarballs that I was extracting, then cancelled mid-extraction, so the files from the .tar file all exist on disk but are not all the right size. Is there any way to: (1) Have ...
1
vote
1answer
145 views

Change root folder name in tar.gz file

I have a tar.gz file, specifically: http://download.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.tar.gz. I am going to download this, change it and stick it in my own repository. I wish to ...
0
votes
0answers
27 views

Apache compilation from source followed by php compilation as DSO and suphp. Pull up a phpinfo file under both configurations

I've followed all the steps specified here. I've done the following steps as per the link: Compile apache from source (using httpd-2.2.24.tar.gz, apr-1.4.6.tar.gz, apr-util-1.5.2.tar.gz) Compile ...
0
votes
1answer
36 views

Why is tarball being recognised with .tar extension in GET Request

So I have a question about header requests on filetype.. Not sure of the best way to phrase the question, so I will explain what I have done. Created a tarball on a server, tar-cvf alle.tar.gz ...
0
votes
1answer
22 views

Create a tarball of absolute file path

I need to create a tgz of files with their absolute file names. The problem is: the receiver of the tgz expects (which is a embedded product based on linux) a root hierarchy like this (displayable ...