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

learn more… | top users | synonyms

0
votes
0answers
10 views

How to use tar in ruby on rails?

So I want to make this script to also compress the files in /home/git/gitlab/public/uploads/files_which_should_be_compressed as a tar file and also to move this tar file to /home/git/gitlab/tmp/...
0
votes
1answer
23 views

Linux fails at creating an tar file for a backup

So I want to make a backup of git. I am using this script to do this (here:https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md). But creating the tar file always fails ...
0
votes
0answers
9 views

tar --remove-files only works on first directory specified

I have a very shell basic script that compresses certain log directories weekly and moves them off the server. I use the --remove-files option in tar to delete the original log files as they are ...
0
votes
0answers
14 views

Extract From tape Brightstor/Arcserve Linux?

I have some SDLT II tapes that were made with brightstor a few years ago. I don't know anything about the tapes besides that fact of who made them. When I try to see how data was stored on the tapes: ...
3
votes
2answers
20 views

Uncompress using tar -xvzf results in a folder with less size than compressed file

I have a file called DW.tar.gz in a RHEL 6 which has a size 539MB. But when it is uncompressed using: tar xzvf DW.tar.gz the resultant folder only has 44KB. The linux shell doesn't display any error ...
-3
votes
0answers
25 views

File size becomes 0 after download [on hold]

I downloaded a file xyz.tar.gz, it shows that download went properly wget http://abc/def/ec-validation-assembly-9.2-assembly.tar.gz --2016-07-13 11:40:14-- http://abc/def/ec-validation-assembly-...
0
votes
1answer
15 views

Creating tar.gz files of 10 mb each

I have a folder with about 50 files. I want to create small tar.gz files (10 mb each) out of these 50 files. I tried the split command tar cvzf - /dir | split --bytes=10MB - backup.tar.gz This does ...
1
vote
0answers
74 views

I can't start Mozilla Servo Nightly Build on my Debian 8.5 x64

I just downloaded Servo Nightly Build for Linux x64 (by Mozilla, based on Rust) from: https://servo-builds.s3.amazonaws.com/index.html I followed instructions for Linux (which are pretty simple): - ...
0
votes
1answer
22 views

windows extract all not working properly, trying to extract compressed content

for a colleague I have created a zip containing two projects, each having multiple docker images that are compressed to xx.tar inside them. The idea is that I can give her a zip file of the whole ...
-1
votes
1answer
56 views

Bash Script to backup and restore directory structure

Basically I have this directory structure in Linux. Backup Dir_1 Sub_Dir_1 file_1 90 GB file_2 10 GB Sub_Dir_2 file_1 20 GB Restore Dir_1 Sub_Dir_1 ...
0
votes
0answers
7 views

How to load predefined docker image using puppet..?

I am having an docker image named image.tar, which was created by using 'docker save' command from another machine and copied to puppet master. I am using 'garathe-docker' module to configure nodes. ...
2
votes
1answer
45 views

List contents of tarball in tree format

Per the answers here I'm able to list the contents of my tarball in ls format. However, I'd like to be able to list them in tree format, i.e. something like the latter instead of the former: With tar:...
1
vote
0answers
34 views

tar stops with “Cannot stat: No such file or directory”

tar complains about not finding a directory that exists, and to which I have permissions. I have seen a number of similar questions, but all of them had to do wih the option f not being just before ...
0
votes
1answer
56 views

How to install XDM on Linux Ubuntu

I'm trying to install the latest version of xdm on Ubuntu 16.04 LTS from the official website http://xdman.sourceforge.net/ .. I managed to extract it, but i couldn't insall it! .. Any help? here's ...
0
votes
1answer
30 views

Tar & save the output of a command

I want to tar the output of a command, say cat hello.world, to a compressed tar file. I don’t want to save a temporary file and later tar it manually. How can I do this?
0
votes
0answers
29 views

What version of tar does 7-zip use?

Does anyone know what version of tar 7zip uses for archiving/extracting? Is it gnu tar or bsd tar... or something else? I've googled around for an answer but can't find anything.
1
vote
2answers
33 views

How to download a .gz and use it as a command?

I recently had the need to install a command to limit cpu recources to a task. (If you're interested, the source is here: http://www.willnolan.com/cputhrottle/cputhrottle.html) This task has always ...
0
votes
1answer
48 views

Why do tar.gz files download faster than .zip files?

I have a Linux build server that I frequently download from and I have noticed that the .tar.gz files have download speeds approximately 3 times faster than .zip files. However, to my understanding ...
0
votes
0answers
12 views

extract only filest that differ (tar)

I want to extract the tar archive containing codebase of some project over already existing project (older version) without changing timestamp of the files that are the same. I'm using Debian and I ...
1
vote
0answers
22 views

How to convert a file format from tar.gz to tar.bz2 using the windows console?

I have some python packages in tar.gz format that I need to convert to tar.bz2. Is there a way to do that in the windows console? thanks!
1
vote
1answer
15 views

Use pipe viewer when streaming directory through tar

I am currently streaming a directory over SSH after compressing it through tar: tar cz /path/to/foo | pv | ssh HOSTNAME 'tar xmz && some-cool-command' The issue is that pv doesn't know the ...
0
votes
1answer
74 views

Bash loop for adding --exclude list to tar

I have a bash script I made to encrypt/decrypt using GPG and tar. Right now I have my --exclude hard coded into the script, but I'd like to make it a bit more dynamic and add the items to exclude as ...
0
votes
1answer
13 views

Does .tar files have checksum that covers the bulk data contents?

I have experienced that a .tar file was corrupted, without receiving an error when unpacking the file, so that makes me wonder: Does .tar files have checksum that covers the bulk data contents?
0
votes
1answer
31 views

Tar Archive All Files with Extension

I'm using this command to archive all PHP files: find -name "*.php" | sudo tar -zcpvf my-archive.tar.gz -T - It works great, except that the output is like this: ./file1.php ./file2.php ./file3....
0
votes
1answer
37 views

TAR and compress a directory but skip compression on already compressed files

I want to TAR and compress a user's home directory as efficiently as possible. The problem is there are a lot of large and already compressed (gzip/bzip2) and hard-to compress files (binaries/data) in ...
0
votes
2answers
50 views

Find files in a folder, compress them to a target location without directory structure in Linux terminal

In Linux terminal: I'm in a folder say /home/user/origlocation/ I need to goto a folder let's say ../source/ and find all files with the name test*.txt. Then I need to compress (tar.gz) these files to ...
0
votes
0answers
7 views

Extract from tar between two dates

What would be the most efficient way to extract all those files from a large tar archive having a modification time between two given dates? I think tar -t could be used somehow to filter the files, ...
0
votes
0answers
120 views

Installing tar.gz file with command line on OS X

I want to install aria2 on OS X 10.11.3 I've downloaded tar.gz file from here. unzipped file with double click. opened command line (i have Xcode command line tools installed). cd /path/to/aria/...
0
votes
1answer
24 views

Tar compress directories and contents into individual, dated files based on folder name bash script

This is on a Debian system. I have had the compression of files and contents into individual folders working fine but not with the date added to the file names. Removing the date part, it works as it ...
0
votes
0answers
24 views

Untar bz2 to Microsd fails

I am trying to uncompress tar.bz2 file to ext3 formatted MicroSD card and after copying some files to card I see below errors and tar fails with below errors tar: ./usr/lib/gcc/gcc/arm-poky-linux-...
1
vote
0answers
39 views

Gzip'd tar archive Spanning Multiple Disks

Very similar to (How to create tar archive split into, or spanning, multiple files?), but specifically I would like to simultaneously: tar and compress a 10 tb directory, having insufficient local ...
0
votes
2answers
57 views

Extract .tar.gz file that has files with .gz extension

Using this question I 'zipped' the folder with thousands of images on apache server. This apparently changed the files inside the folder itself and zipped the files. But that's not the issue atm. I ...
0
votes
0answers
12 views

How to delete files from a tarball by owner or version? Tarball contains files from multiple owners

I was deleting and appending files to a already existing tarball (meaning created by someone else other than me) but now I have duplicated directories from different owners and even from the same ...
-1
votes
1answer
608 views

how to install latest ffmpeg on Centos

I want to install the latest ffmpeg 2.8.5 on the Centos server. Followed this website http://www.mysql-apache-php.com/ffmpeg-install.htm and completed the installation. But the installed ffmpeg is an ...
0
votes
0answers
33 views

FTP files from Linux server to windows client machine whilst maintaining linux file permissions

My local machine runs windows and my website is on a linux server. I want to back up my website to my local windows machine and maintain linux file and folder permissions. Ordinarily I would compress ...
0
votes
0answers
15 views

Strategies To Reduce Compressed File Lookup Time With Pixz?

I have a PIXZ-compressed (level -9) tarball containing around 4000 files (ordered, like pages in a book): compressed size is ~670M. Currently I am programmatically accessing these files using the ...
0
votes
1answer
81 views

tar xvfz and -xvfc both didn't worked in Cygwin on Windows

I tried tar with xvfz and -xvfc both didn't work in Cygwin on Windows. $ tar xvfz sshpass-1.0.5.tar.gz tar (child): sshpass-1.0.5.tar.gz: Cannot open: No such file or directory tar (child): Error is ...
1
vote
1answer
61 views

How to copy a .zip from within a .tar to a given location without extracting entire .tar using AWS S3 CLI

OSX 10.11 - python3.5 or AWS CLI (or other tool?) I have ~ 5,000 subdirectories within an Amazon S3 bucket, each subdirectory contains a single .tar. In each .tar it contains only one .zip, ~<1mb ...
1
vote
1answer
275 views

rsync to/from tar archive

Is it possible to rsync a real filesystem (remote) with a tar archive (local)? If so, how? Problem is I need to correctly backup user/group/permission settings and, while I have root access on remote ...
4
votes
2answers
158 views

Archive (.tar.gz) Corruption

I've got a .tar.gz archive that has definitely suffered some kind of corruption. The data inside the archive is obviously very precious to me and I'd really like to get my hands on as much as possible....
0
votes
2answers
66 views

Untarring into a temp directory, then deleting the directory

I'm a very new linux user, and I'm untarring a tarball into a directory, say that without smiling. What I want to do is create a temp directory with the mktemp -d command and use the tar command to ...
0
votes
0answers
106 views

Does tar happen to corrupt files? How can I recover a corrupted file?

So I was finishing a small c++ project last sunday, after a last check I made a tgz archive of it and sent it by email. And when I tried to open it again today, the file appeared to be completely ...
0
votes
1answer
153 views

Error when trying to extract tar file

While I am trying to extract cmake i am getting error: tar - zxvf cmake-3.4.0.tar.gz tar: You must specify one of the `-Acdtrux' or `--test-label' options Try `tar --help' or `tar --usage' for more ...
0
votes
0answers
23 views

Automate the tar on file creation

I need to tar the log files automatically when its get created with date (eg., error.log-20151116). How should i automate this activity. I don't want to perform this action by log rotation.
1
vote
0answers
62 views

7-Zip: Empty tar file created

Using 7-Zip portable i created a tar file containing a folder which also contains numerous files and folders (200mb+). When i open the tar file it is empty, but the size of the tar file is exactly ...
0
votes
0answers
242 views

Error when extracting tar.gz file which contains symbolic link inside

I tried to compress the Repo folder (AOSP) into tar.gz.Source folder has many git folders and Symbolic links.It compressed without any error.But when i tried to decompress it using tar command it is ...
2
votes
1answer
54 views

Change the directory structure in tar.gz without extracting it

I have a tar.gz file that has the following structure when I extract. /dir1/dir2/dir3/many_text_files(.txt) I would like to change the structure as dir3/many_text_files(.txt) A simple solution is to ...
0
votes
0answers
47 views

Recover overwritten .tar file on otherwise empty drive

I had a partition with basically nothing but a giant .tar file on it (that plus Ubuntu's "lost+found"). Then when I went to extract the tar file, I accidentally did tar -c instead of tar -x, replacing ...
0
votes
1answer
52 views

Archive directory structure without file contents

I would like to create an archive capturing the entire structure of a directory, including subdirectories and files. Preferably preserving file attributes such as modification time. The archive ...
0
votes
1answer
47 views

Ignore Zeros Not Working When Trying To Open Tar

I have a backup file from my system admins called backup.tar.gz. They mentioned that I need to use the --ignore-zeros/-i command when unzipping the file. However when I run the command as suggested ...