0
votes
3answers
37 views

Create archive with hidden files and folders creates a . root entry

I am trying to archive a project folder with hidden files and folders, and I get one with a root entry of .. It's annoying. Typically : tar -czf $ARCHIVE_NAME -C $DIR . will create an archive like ...
0
votes
0answers
92 views

Java plugin doesn't work in Chrome in Ubuntu — how can I fix this?

I have Ubuntu 14.04 LTS (64 Bit) and Chrome Version 35.0.1916.153. I downloaded jre-7u60-linux-x64.tar.gz and extracted it in /usr/lib/java/ Then I created a directory named 'plugins' in ...
0
votes
0answers
9 views

Compressing with BarCat?

I'm having an issue using Barcat to show a dialog while compressing? Wondering what the exact syntax is? here's a link to Barcat things I've tried are bar -n apache24.tar.xz |tar -Jcf - bar -n ...
1
vote
1answer
39 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
2answers
34 views

Untar after uploading to linux from windows

I have created tar.gz from my linux server, and I downloaded the same to my linux system and I successfully doen untar with tar -xvf package.tar.gz. And now my issue I downloaded same ...
0
votes
1answer
23 views

How do I upgrade my version of tar on Red Hat 5?

I'm running RHEL 5 and the default version of tar is horribly old. yum update tar shows that I have the latest version according to their repo. How do I go about upgrading to tar 1.27, please?
0
votes
3answers
43 views

Zero sized tar.gz file found inside a tar.gz file

My current directory contains a single file like this- $ls -l -rw-r--r-- 1 root staff 8 May 28 09:10 pavan Now, I want to tar and gzip this file like $tar -cvf - * ...
2
votes
1answer
26 views

Pull root image from remote linux

I have switches running PicOS-Linux. This pretty much Linux with Open vSwitch and Busybox. Updates are handled by loading an image of the full file system. So a system image is pretty much just a ...
1
vote
1answer
26 views

Recover files from corrupt archive

I have a tar file of 40Gb but when I open it with the archive manager on Ubuntu I get only 512MB. The major part of my files are messing. Even when I do : tar -tf myfile.tar.gz I don't get the list ...
0
votes
1answer
198 views

create tar with multiple directories and file locations

I have some scripts and files located in various locations like /etc/dir1 /var/www/html /home/somedir I want to make a tar so it copies files and folders with location structure and when I untar on ...
2
votes
0answers
163 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 ...
0
votes
0answers
53 views

Tar a very large file directly to a drive

I was running my code to download some data on the Amazon cloud. The instance that I was running had an 8GB storage that I had bought with it plus 140GB extra instance storage (sort of plugged in as a ...
3
votes
1answer
47 views

Why does tar with -z option create archive with different hash everytime

Can you tell me why tar czf archive.tar dir creates archive with different hash everytime (I check with 'md5sum') Without compression parameter -z or with parameter -j instead all works fine. ...
1
vote
2answers
50 views

extract archived .bz2 files inside a .tar archive with a single command

i need to decompress .bz2 files inside a .tar archive (two step decompression) For example: requested_files_1.tar has multiple .bz2 files inside. How can I extract them with a single ...
0
votes
1answer
34 views

Sqoop Tar ball unpacking

I'm working through the installation directions for Sqoop: Sqoop server supports multiple Hadoop versions. However as Hadoop major versions are not compatible with each other, Sqoop have ...
-1
votes
1answer
41 views

Backing up a directory of data incrementally in linux

I have a directory full of files that remain relatively static. However, some files are moved between subdirectories. I create a full backup every month of this data because it's a lot of data. I'd ...
1
vote
5answers
53 views

List files in a tarball over internet

To list an archive's contents I can do : tar -tzvf mytarball.tar.gz But this works for local files only. Can someone point out how to do it (if at all possible) for files over internet. I tried it ...
0
votes
1answer
22 views

Tar up only 3 specific files in command line with linux

Is it possible with one command to tar up 3 files into one tar archive? For example, tar up: public_html.tar.gz dbapp.sql dbwp.sql into a tar file called bak.tar.gz
1
vote
2answers
79 views

List contents of large tar archive quickly

I need to list the contents of a fairly large (gzipped) tar archive (about 37GiB). tar -ztvf archive takes forever. Is there some way to get this listing quickly? Possibly by only listing contents ...
1
vote
2answers
38 views

Is it possible to give “out-of-the-box” programs an executable command in Linux?

I don't know if I'm being clear. Take the following scenario: You have downloaded a .tar.gz compressed program, you unpack it, and it runs right from there. It's not source code, just an application ...
1
vote
1answer
69 views

Extracting a .tar.gz I get a file without extension

The file is this: http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.3.2-linux-x86.tar.gz As usual I do tar -xvzf pooler-cpuminer-2.3.2-linux-x86.tar.gz but I just get a file ...
0
votes
0answers
16 views

Is there an option to make 'tar' warn when an archive doesn't contain a single top-level directory?

I personally dislike it when tar/zip files contain many files without a base directory. For example, mypackage.tar.bz2 ├── a.txt ├── b.txt └── c.txt instead of mypackage.tar.bz2 └── mypackage/ ...
1
vote
1answer
82 views

How to convert a file of format tar.gz to tar.bz2?

Like the title says, how do I do this conversion from the Linux console?
0
votes
1answer
508 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 ...
1
vote
2answers
117 views

How “tar” command manages to “see” changed files between two incremental backups

How tar command checks whether a file is changed or not? How tar "knows" that this file is changed and it has to go in the next incremental backup? I have some assumptions: it may compare "mtime"; ...
1
vote
1answer
397 views

Avoid errors from tar failing to restore directory permissions

I observe the following behavior with both tar 1.26 and 1.27.1: $ mkdir a b a/diffowner $ sudo mkdir b/diffowner $ sudo chmod a+w b/diffowner $ echo foo > a/diffowner/foo $ tar -C a -cvf test.tar ...
2
votes
1answer
66 views

wget download from mirror download links

I'm trying to download using wget a tar.gz. The file is redirected based on the url parameters, so all downloads are redirected automatically. for example: wget ...
1
vote
1answer
309 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
4k 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
312 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
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 ...
1
vote
1answer
81 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
31 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
162 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 ...
1
vote
2answers
97 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
93 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
101 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
19 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
904 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
72 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 ...
1
vote
0answers
76 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 ...
4
votes
2answers
251 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
378 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
140 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
80 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 ...
1
vote
2answers
195 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 ...
1
vote
6answers
541 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
300 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 ...
0
votes
2answers
452 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 ...