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

learn more… | top users | synonyms

0
votes
1answer
28 views

Most sensible way to archive email to a tar.xz

I would like to archive all my old email in a way that I could easily restore it later if I need to reference it. What is the most sensible format to export/store my email before I then tar it? eg. ...
1
vote
0answers
18 views

tar with -T - and prevent creating empty archive

I must use tar with -T - and get backed up file list from stdin. Untoftunately when input list is empty, tar creates empty archive. I want prevention to this. It is possible induce tar to do ...
0
votes
2answers
415 views

Bash tar and output to log file

How can i write TAR operation in to a log file? tar -czvf arh.tar.gz public_html > 1.log TAR -czvf worked thanks guys! Now in bash script: for i in */ ; do ...
1
vote
1answer
262 views

how to remove full path when doing tar.gz compression

I'm using this command to archive a directory named g from java code: tar czf /a/b/c.tar.gz /e/f/g When the tar file c.tar.gz is created, I find an entire path e/f/g then all files of the g folder ...
1
vote
3answers
3k views

tar: cannot open: no such file or directory

I am trying to follow the instructions here to install Jetty on ubuntu but I am running into a problem when I try to use tar. cd /usr/local/src sudo wget ...
7
votes
2answers
298 views

let tar auto detect compression type when extracting from stdin

I use GNU tar. It can auto detect compression type when compressing/decompressing files. But I need to decompress an archive from stdin and the compress type is unknown. I noticed that tar can give me ...
0
votes
0answers
37 views

How do I join, decrypt and uncompress my backups?

This is the line I used to back up some files for f in "*"; do tar -ch "$f" | pv | xz -9 -v |openssl des3 -salt -k “mypassword” | split -a 4 -b 200m – “/backups_${f%}.tar.xz_” ; done Now I am ...
0
votes
1answer
40 views

Extract single file from tar without taking its directories with it

I'm currently using this command tar -zxvf foo.tgz -C /root/dir1/ dir2/dir3/dir4/dir5/file to extract my specific file from a tar archive to a given directory, dir1. As is, I end up with ...
0
votes
0answers
11 views

Recursively updating modified files in archive

I'm trying to update an existing archive using 'tar', but I understand that 'tar' doesn't recognize modified files exist in the specified directories, e.g.: $ find . . ./ex ./ex/ex ./ex/ex/.pikAboo ...
1
vote
1answer
80 views

How to create and split a tar archive and send the results to my server?

I would like to create a .tar backup of some files on my laptop and send them to my server. My laptop's HDD is not large enough to hold both the original and backup copy of the file. I would like to ...
0
votes
1answer
29 views

Strange behavior encountered while using tar

I had a folder of useless C programs for a project. When I was compressing it using tar, I kept using tar -cvf c-project and then realized I'm setting the flag for the file name and I'm giving ...
2
votes
1answer
157 views

Linux - transfer all files modified after a specific date to a new harddrive

I recently had my second hard-drive of the past semester begin to fail on me and become unable to ghost to a new drive. I still had the first hd that failed so we ghosted that drive but now I need to ...
0
votes
0answers
32 views

Store the filename of the extracted file in a text file

what is the best way to store the filename of an extracted file in a text file? I have a script that extract a single file from a tar file and then I need to store the name extracted file to a txt ...
1
vote
1answer
273 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
2answers
96 views

Remove folder structure from archive, ignore folder while archiving and fix error

I am trying to make a script to backup each of my plesk hosts to individual files, I am having two problems: I would like to remove the folder structure from archive, the tar is 3 folders deep I am ...
2
votes
1answer
91 views

tar: compress only the contents of a folder

I have to compress only the contents of the folder, not the folder with tar, there is any argument for that? I have search but I don't find anything. Example: mainfolder/ asd1 asd2 ...
5
votes
3answers
99 views

Unarchive file while reducing size of archive?

The dilemma: I have a 10GB archive and a 20GB harddrive. When I go to unzip / unarchive the file the harddrive fills up and the process fails. Question: On ubuntu server 12.04 / linux is there a way ...
0
votes
0answers
18 views

Adding a file to a location within tar file

I use Ark in Fedora. It can add files. But it seems unaware of the fact that tar may have internal structure and there are much more places within the archive to add and move files than tar's root.
3
votes
1answer
1k views

tar/bz2 compress a file removing uncompressed original

Is there any way to turn a directory called dir1 into dir1.tar.bz2 without keeping the original? I need to save space and want to compress some large files but don't have enough room to keep a ...
0
votes
3answers
825 views

extract single file from huge tgz file

I have a huge tar file (about 500G) and I wan't to extract just a single file from it. However, when I run tar -xvf file.tgz path/to/file it seems like it is still loading the whole contents into ...
1
vote
1answer
71 views

Specifying Disk Drive to Write Files?

After tar.gz'ing a 25 GB folder, I copied the file from my local machine to a remote server via scp. Once the file was transferred, I failed to extract the tar.gz due to: $ tar -zxvf dump.tar.gz ...
0
votes
0answers
114 views

git archive creates a tar file that cannot be manipulated

My usual source release script create a tar archive from git and then add a version file: echo "0.9.2" > .tarball-version touch --date="$(git log -n 1 --pretty=format:%ci)" .tarball-version git ...
1
vote
0answers
74 views

How to create Unix tarball with various file permissions inside on a Windows box?

Could anyone enlighten me on how can I create a regular Unix tarball archive (e.g., tar.gz or tar.bz2) on a Windows box in a way that will mark some files in that archive as "executable" (e.g., with ...
-2
votes
1answer
197 views

How to move a file of 250 GB to another server? [closed]

The hard disk of one of my servers is full, so I need to move a file away from it to make room. I have tried tar -cvf but when I send it to the other server using wget -c, I see it is 100% complete. ...
4
votes
2answers
246 views

How make a compressed tar when there are too many filenames for the shell to expand on a single line?

Normally I would just do something like: tar -czf archive.tar.gz *.csv But when there are too many files in the directory for the shell to expand on a single line this doesn't work. In these cases ...
3
votes
3answers
363 views

linux tar -T - does not work on the fly

I found some problem with linux gnu tar. wheh I use option -T - (for file list from stdin) or -T named_pipe_file , this desn't work on the fly. for example, simple interactive script: while ...
0
votes
1answer
172 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
137 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
78 views

Tar archive wrong creation date

I have a script to backup some directories: tar cjf /backup-`date +\%m-\%d-\%Y`.tar.bz2 mydir >> /dev/null 2>&1 At the end of the process, a "ls -al" show something like: -rwxr-xr-x 1 ...
0
votes
4answers
144 views

Does archive size of tar, zip and rar effect the time it takes to delete a file from it?

Does it take a longer time to delete files from a large tar zip and rar archive than a smaller one? I would think that for a file to be deleted from an archive, all the data that exists after the ...
1
vote
2answers
191 views

Advanced backuping script

I'm currently writing an advanced starting script for my minecraft server. Everything works out as I want it too. But the problem is the backups. I created a function for it. It works also great and ...
2
votes
3answers
1k views

Copy hundreds of thousands files Mac to NAS

I'm trying to transfer my Aperture library to the NAS. It contains few hundred of thousands of files (quite small ones). After OS X finishes copying the big files, the estimated time of the copy ...
1
vote
6answers
523 views

How do I tar dot files but not dot directories

The following tar command will exclude all dot files and dot directories. tar -cvzf /media/bjackfly/bkup/bkup.gz --exclude '.*' --one-file-system /home/bjackfly In my case I want the dot files to ...
3
votes
3answers
292 views

Display deflation percentage of tar command (like zip command)

This question may sound weird but I would like to know if there is a possibility to display the deflation percentage of the files processed in the tar command. I use this command tar -cjvf ...
2
votes
6answers
1k views

How to extract tar.gz on windows xp

Can anyone suggest me ways to extract tar.gz file on windows xp ? Is there any built-in tool ? Or may be a script that can be written ? PS: Please note I can't install new software on my computer (do ...
0
votes
2answers
437 views

Tar - Remove Common Prefix When Creating Archive

I am attempting to tar up the contents of a root file system, located at $rootfs. The problem is, when I try to tar -c $rootfs > $dest, the directories between my current directory and the actual ...
1
vote
2answers
201 views

7zip is incompatible with tar format created by git archive

% git archive --format tar master > archive.tar % file archive.tar archive.tar: POSIX tar archive % tar cf a.tar archive.tar % file a.tar a.tar: POSIX tar archive (GNU) 7zip cannot unpack tar ...
1
vote
2answers
133 views

Backing up multiple vmware VMs from a mac

I use vmware fusion to prototype and model enterprise infrastructure. This question is intended to solicit an optimal method for backing up (preferably incrementally) VMs. My VM directory is now ...
0
votes
1answer
191 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
394 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 ...
-3
votes
1answer
176 views

Compress text file to tar.bz2 format on Ubuntu

How can I convert a sample.txt (uncompressed) file to sample.tar.bz2 format using Ubuntu 10.04 command shell?
1
vote
1answer
267 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 ...
0
votes
2answers
797 views

tar piped to curl: This does not look like a tar archive

curl -L http://download.transmissionbt.com/files/transmission-2.80.tar.xz -s -o - | tar -xf - The error: tar: This does not look like a tar archive tar: Skipping to next header tar: Exiting with ...
2
votes
2answers
14k views

Install VLC 2.0.7 in CentOS 6.4?

I am keep failing in the installation process I have tried. I have started process as follows. yum install gcc dbus-glib-devel* lua-devel* libcddb wget ...
2
votes
2answers
303 views

One-liner Linux for scp'ing thousands of files as a tar

I have a folder with tens of thousands of files that I need to scp to another box. As doing one file at a time is very timeconsuming, and as I don't have harddrive space to make a compressed tar ...
0
votes
1answer
232 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 ...
-1
votes
1answer
149 views

When I extract a tar file, all the files/folders have 777 permissions

I run Debian. I have a tar archive that, when extracted, assigns 777 permissions to all files/folders in it. I believe this has to do with the fact that I'm root, but is there a way to make it so they ...
0
votes
2answers
256 views

TAR or ZIP current directory excluding the generated file

I am trying to zip or tar all the files and subdirectories in current directory and save it to the file I am zipping. The problem is that -x shitch does not work - files are being zipped and saved to ...
1
vote
0answers
283 views

Can I fix this TAR+XZ file?

I'm doing some file recovery on an old hard drive, using the most recent stable PhotoRec. After finding a lot of files that I wanted to keep, I decided to make some of them (meaning over 700) easier ...
1
vote
2answers
95 views

How to extract such a compressed file?

I have been asked to extract a ZIP file having in it 3 tar files and each tar file contains around 3000 gz files. I had to extract the main ZIP file first then extract the tar files second then ...