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

learn more… | top users | synonyms

3
votes
1answer
82 views

Splitting tar archives and uploading them one at a time

I want to backup my systems to split tar archives with a script uploading them one by one. It has to create the split archive and then run a script. The script uploads the part and deletes it. This is ...
3
votes
1answer
1k views

Estimating compressed file size using a list parameter

I am currently compressing a list of files from a directory in the following format: tar -cvjf test_1.tar.gz -T test_1.lst --no-recursion The above command will compress only those files ...
2
votes
1answer
622 views

How to count number of files in “.tar” files inside another, nested “.tar” file without extraction?

There are many solutions out there on counting of files inside a .tar file. But I have not found a solution to count number of files in .tar files inside another .tar file without extraction. For ...
2
votes
1answer
299 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 ...
2
votes
1answer
2k views

tar: Cannot create symlink : File exists

I backup lots of gigebytes files in to myproject.tar.gz, and compress success without errors. Now, I want to decompress all to an folder "myprojects". adan@adan-Latitude-D630:~$ tar zxf myproject.tar....
1
vote
1answer
14 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 ...
1
vote
1answer
124 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
119 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 2014-...
1
vote
1answer
461 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 ...
1
vote
1answer
312 views

How to restore the file access time after extracting from archive

Is it possible under Linux to restore the file access time to that of the original file after extracting files from an archive created with tar on NTFS file system? tar does not restore the access ...
1
vote
1answer
1k views

Extract a single file from a tar file to another directory

I have a tar file and I need to extract a single file from it and put it to another directory. I tried this but it gives an error message. It did extract the file but not to the directory that I want ...
1
vote
1answer
595 views

find files with spaces modified in last 60 days and tar.gz in files no bigger then 4gb with date

I maintain a file server. I need to backup files that have changed in a period of time. First i compressed up everything to 4gb files and backed up to dvd. But 7z that I was using 7z a -t7z /home/...
1
vote
1answer
172 views

How much additional disk space does tar require

I am moving a tar.gz archive between servers and had to note that when extracting the archive a large amount of additional disk space is used. My original data size is 12G, 7.8G compressed and ...
1
vote
1answer
118 views

tar --remove-files behavior: delete after every file or after completion?

Pretty much in the title. I have a box with very little disk space left and lots of data. I want to add all of the files into a tar, deleting them as I go because there is clearly not enough space to ...
1
vote
1answer
873 views

Can I stop a netcat tar pipe and continue later without overriding existing files?

I'm trying to copy a lot of files from my NAS to my server, about 2TB. I found that using a netcat tar pipe to copy the directories goes pretty fast, about 40mb/s. It seems to work faster than rsync ...
0
votes
1answer
14 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 ...
0
votes
1answer
71 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
36 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
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
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 ...
0
votes
1answer
64 views

How to extract from PAX archive to current directory.?

I have a PAX archive what I want to extract into the current directory, using the directory structure in the archive. I have tried the following command: JBSP03:/u/jsdbsp/jbsp03:cd /usr/lpp/sel/...
0
votes
1answer
2k views

how do I install mingw64 on kali linux 2.0?

I have downloaded several packages from these web sites: https://packages.debian.org/stable/wine-development http://sourceforge.net/projects/mingw/?source=typ_redirect Apparently, I have to have ...
0
votes
1answer
357 views

Backup user home directories and system configuration file

May I know that when I run this command: sudo tar -cvpzf user1_backup-$(date +%Y--%m-%d).tar.gz /home/students/user1 to backup the user1 account in my linux OS, it does backup my home directories ...
0
votes
1answer
46 views

GPG with tar.gz at the same time without the full path being packed

I would like to compress and encrypt a folder: tar -cz "/path/to/the/folder/" | gpg --encrypt --passphrase "password" --recipient "mail@mail.mail" > "/destination/package.tar.gz.gpg" When I ...
0
votes
1answer
25 views

decompress multiples pdf files without using tmp files?

I have more than 100.000 pdf files I want to decompress it, then recompress theme all in one archive file to save space. all i found is: ls | xargs -P 4 -n 1 -I {} qpdf --stream-data=uncompress {} /...
0
votes
1answer
41 views

I want to take tar backup of the directory whose name will be variable

I am trying to write a shell script in which I want to take tar backup of the folders which are formed on daily basis. For example my parent directory name is "log" and under this directory a ...
0
votes
1answer
149 views

Tar progress per file with pv for multiple files/folders at a time?

I've been using this one line command that I found on another post here and it works great for one folder at a time. This is the command: tar -cf - /opt/folder1 | pv -s $(du -sb /opt/folder1 | awk '{...
0
votes
1answer
70 views

How to .tar multiple text files

I have multiple text files in a folder. I must tar them in a single tar-file. I am passing (iterate) the file names through a variable. When I do that only the first file gets tarred. Here is the ...
0
votes
1answer
67 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
47 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
1answer
157 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 ...
0
votes
1answer
497 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
12 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 ...
0
votes
1answer
503 views

Tar withour directory structure and exclude folders

I am trying to create a tar file to exclude certain folders and then I want to have a tar file without the parent directory structure. I am able to exclude folders, but when I extract I see path from ...
0
votes
1answer
494 views

tar -czvf with no output file

Say you run tar -czvf some_folder_here and don't actually specify an output file, like tar -czvf some_output_file.tar some_folder_here. Where does the file go? I just ran this by accident, and the ...
0
votes
1answer
2k views

How do you extract a file using tar in AIX?

On a NORMAL Unix distro, tar zxvf works but seems like my machine has some super old version of tar that doesn't have the right parameters. -bash-3.00$ tar zxvf qemu-1.7.0.tar.bz2 Usage: tar -{c|r|t|...
0
votes
1answer
608 views

How to batch extract from archive using tar to directories

I m trying to extract files contained within a directory in a tar.gz file. The extract I m using is tar zxvf foo.tar.gz. It extracts the files from the archive but removes them from the directory they ...
0
votes
1answer
309 views

How to keep daily tar.gz backup with less redundant data

Like most of you, I have a few daily tag.gz snapshot of a folder (of any application). There is only a few different each other but the tar.gz is not a diff/delta friendly format. Most data in the ...
0
votes
1answer
321 views

Ubuntu 13.04 Restore: How to untar 'full backup archive' and remove any changes later on?

Linux newbie here. I got a fresh template of Ubuntu 13.04 installed on my VPS and made a full system backup using TAR: sudo tar -cvpjf backup.tar.bz2 --exclude=/backup.tar.bz2 --exclude=/dev/* --...
0
votes
1answer
1k views

Creating a tar with a absolute path

tar -cf /Users/Files/myfile.tar /Users/Files/ I am basically trying to create a tar containing the contents of User/Files and create it in the folder of the contents. I can only execute this ...
0
votes
1answer
792 views

Tar of Linux Kernel corrupted error while untaring

I have downloaded two versions of Linux kernel 3.9.9 and 3.10 from kernel.org. When I am trying to untar this file I am getting this error Lzma library error: Corrupted input data . I am not ...
0
votes
1answer
41 views

Removind same *.tar.gz archives

I have crontab event archives to .tar.gz some folder every N hours. Finally I have collection of .tar.gz files. Now I want remove duplicating archives (created while target files stays unchanged) How ...
0
votes
1answer
1k views

One-click to create and extract .tar.gz files in Windows?

I'm using 7-zip latest alpha version (9.30) and I find it really inconvenient that, if I want to create a .tar.gz archive, I have to create a .tar archive first then add it to a .gz archive later. So ...
0
votes
1answer
125 views

Extract untarred files from a tgz in linux

I have a large .tgz file which is of very large size(19GB). I started the untar operation in vmware last night but in the morning, I saw a blue screen of death. I dont want to waste time on untarring ...
0
votes
1answer
213 views

How to install get-iplayer from source file?

I want to install the latest version of get-iplayer in Debian, and I've got its source file, a tarball file, from here. However, I don't know what to do with it. Usually when I come across a tarball, ...
0
votes
1answer
803 views

“Unexpected end of file” error while uncompressing lzma file

I've got a file called foo.tar.lzma. While trying to decompress it, I get "Unerwartetes Dateiende" ("Unexpected end of file"). I assume I lost quite a lot of bytes, but 1.1 GB are still there. The ...
0
votes
1answer
74 views

Modifying the path inside an archive for extraction

I would like to change the path of extraction of a .tar.gz archive. The files are supposed to extract as ./1/2/3/4/files, ./1/2/3files and so on. The .1/2 part of those is common to all the files. ...
0
votes
0answers
250 views

Auto-untar/gunzip a multilayer tarball in Win XP/7

I review a disgusting ball of knowledge each day that I'd like to think up a way to organize more automatically. The structure looks like this - Parenthesis show the number of files of that type in ...
-3
votes
0answers
24 views

File size becomes 0 after download

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-...