GNU tar creates and manipulates archives which are actually collections of many other files; the program provides users with an organized and systematic method for controlling a large amount of data.

learn more… | top users | synonyms

0
votes
2answers
59 views

Update and synchronize servers

I have two servers.. One has websites running and other have backup of those websites.. I need to synchronize the servers every week such that the files that were updated or changed after the previous ...
0
votes
1answer
67 views

TAR + create the dir under specific location

I must to run the tar command only under /var/tmp in my Linux machine ( red-hat linux ) so I run the tar command. And directory "KIT" created under /var/tmp in place under /var/tmp/DIR/ What to ...
2
votes
1answer
1k views

How can you designate an arbitrary leading path when adding files to a tar?

Is it possible to set an arbitrary path within a tar archive to place files which may not exist on your original filesystem? This differs from the -C switch in that I may want to take a back up of /...
2
votes
0answers
303 views

Umlaut encoding: tar on Mac Lion

I have a tar archive created on an old Unixware machine using ISO8859-1 encoding. When I try to extract it under Macosx Lion, I experience a bit of weirdness with German umlauts. For instance: I open ...
4
votes
2answers
2k views

CentOS 5.6 Update Version Of Tar

I am running CentOS 5.6 and for some ungodly reason, the version of tar is from 2004, and not compatible with the node package manager (NPM). How in the world can I update it? Is there an additional ...
0
votes
2answers
441 views

CRC Failed, File is broken, using php system command to tar a directory

Can anybody see a problem with the below PHP code? Or have any ideas to troubleshoot a solution as to why whenever I download the backup file.tar.gz and try to open it using 7zip on windows... that I ...
1
vote
1answer
251 views

update tar archive in the relative directory

when I want to create a tar archive in a relative path, I can do this: tar cf archiveName.tar -C relative/path someDirectory but when I want to update the archive, this tar uf archiveName.tar -C ...
1
vote
2answers
811 views

Quick and Easy Backup of Remote Server?

I'm switching from a slower remote server to a faster one. (In a nutshell.) Everything seems to have been migrated properly, but just incase some things didn't get transferred properly, I'd like to ...
0
votes
1answer
540 views

Update default tar location (CENTOS) [closed]

Im not a linux admin by far but ive been playing with node lately... a package im trying to use wasnt happy with b/c tar and i found i was running tar (GNU tar) 1.15.1 i downloaded the new version to ...
7
votes
2answers
653 views

Can I throttle tar without ionice?

My tar command tar --remove-files -cvif 2011-08-02_14-05-09.tar 2011-08-02_14-05-09 Writes 80MB/s. That's beyond the capacity we can spare because MySQL starts queuing up writes and eventually we ...
1
vote
2answers
364 views

Compress streaming data before sending

The following is working as expected. Sending server: mysqldump db_name tbl_name -d | nc -l 1234 Receiving server: nc 10.10.10.114 1234 | mysql -uroot -proot@123 test When I am dumping to ...
0
votes
2answers
78 views

Compressing directories on server without ssh

Is there a way to compress directories on a server without ssh access? We are transferring many domains and there is no ssh available on the current server. We would like to secure copy the ...
1
vote
2answers
8k views

Check integrity of .tar.gz backup

If you backup your system and create a .tar.gz with thousands of files and directories, how do you easily check its integrity? (ie without having to decompress). It's good to keep backups, but it's ...
0
votes
3answers
142 views

Uncompressing gzip file

I have compressed a folder using following command: tar czvf arch.tar.gz dirname/ When I try to uncompress it using following command tar xvfz arch.tar.gz then it uncompress folder but contents ...
3
votes
2answers
1k views

tar incremental backup with --listed-incremental does not work for me (Linux, Ubuntu)

according to http://www.gnu.org/software/automake/manual/tar/Incremental-Dumps.html, i try to create incremental backups with tar and --listed-incremental on my Ubuntu, but the --listed-incremental ...
13
votes
2answers
34k views

Can I extract a specific folder using tar to another folder?

I am new to the world of Linux and seem to have run into a stumbling block. I know I can extract a specifc archive using the command tar xvfz archivename.tar.gz sampledir/ however how can I extract ...
0
votes
1answer
226 views

Can I extract a file or directory using the tar command and provide it a specific name I want it extracted as? [duplicate]

Possible Duplicate: Can I extract a specific folder using tar to another folder? I am new to world of Linux and would like to know if I can extract a specific file or directory by giving it a ...
1
vote
2answers
2k views

What happens if you use the command tar tvf as opposed to tar tvfz?

I am new to the world of Linux and in the process of setting up a Linux environment. I stumbled across the tar command as I need to view the contents of a file prior to extracting it and by accident ...
1
vote
2answers
151 views

MySQL needed to download in order to compile from source?

I have Slackware 13.1 and due to some bugs on the current version of the MySQL it comes with, I have to upgrade it. Since Slackware does not have 5.5 and I am upgrading I have decided to go with 5.5.x....
0
votes
2answers
540 views

tar too slow when file doesn't exist!

I have a gigantic list of files on a text files. This list is passed to tar, like this: cat list.txt | xargs tar rvf archive.tar --ignore-failed-read The problem is that some files that are on the ...
3
votes
1answer
7k views

Correct way of using the --remove-files option with TAR

What is the correct way to use the --remove-files option when using tar? Is it... tar -cfvj --remove-files archive.tar.bz2 archive/ Or... tar -cfvj archive.tar.bz2 archive/ --remove-files
1
vote
2answers
625 views

ssh tar copying - missing files

On copying directory "home" (from remote machine) to local machine using the following command: ssh root@remote.machine 'tar -cz -C /home/*' | tar -zxv The number of files after the transaction ...
0
votes
1answer
214 views

Backup to Tape using tar: How to add file details (time, date, size) to a TAR log?

What is the best way to make my tar log more informative? Cat'ing the log shows what was backed up, but tells nothing about the files last update or size. Eg: tar cvf /dev/st0 foo* > backup.log ...
5
votes
3answers
144 views

Returning A List Of Quoted Files Paths Using Find

I would like to create a tarball that contains files from a directory that have a ctime of less than 30 days. Most tutorials I have found have basically recommended doing something like this: tar cvf ...
2
votes
1answer
437 views

Tar “mode” flag is being ignored

I try to tar a file and set the permissions to 666 using the mode flag. But whatever permission I set, it is simply being ignored. Command: tar xvzf backup.tar.gz --mode=666 -C /home/user/ Till ...
1
vote
1answer
2k views

Create ZIP archive without storing permissions?

I am distributing packaged files in ZIP format. I use the following to create: zip -r distr.zip files/ When expanded on other UNIX system files preserve their permissions as they were when I packed ...
2
votes
2answers
1k views

Linux how to move a large file?

I had an ISO file that was over 4GB. When I tried to copy or move the file from my computer to a USB key, I remember getting some error about the file being too large for the operating system to ...
1
vote
2answers
330 views

Linux: How do I archive select file extensions in an unknown tree

What is the best way to archive select file extensions in an unknown tree. I cannot use exclude options in tar/gzip/rsync as it would be impossible to exclude all possible extension variations. ...
22
votes
2answers
15k views

Fastest way to extract tar.gz

Is there anyway to extract a tar.gz file faster than tar -zxvf filenamehere? We have large files, and trying to optimize the operation.
0
votes
1answer
842 views

Python script take long time to backup folder

I copied this script from some book to make tar.bz2 of some folders for backup. #!/usr/bin/env python import tarfile, os def make_tar(folder_to_backup, dest_folder, compression='bz2'): if ...
4
votes
1answer
992 views

How to show numerical UIDs/GIDs stored in tar file

I've got some troubles with a tar file that holds a backup. It was provided by our hosting provider and contains some strange file permissions. When viewing with tar tvf example.tar I only get the ...
0
votes
1answer
395 views

Using tar on SLES Linux

I am trying to install some package from these instructions: http://www.franz.com/agraph/support/documentation/v4/server-installation.html#header3-25 I run this command: tar zxf agraph-4.2-...
0
votes
2answers
211 views

script - extract multiple files

I have 30 tgz files like these: live-3.0.10-20101031.tgz live-3.0.4-20101005.tgz when I extract them it will be extract in to "live" folder.(ie: tar xvzf live-3.0.10-20101031.tgz will extract to "...
1
vote
1answer
981 views

Change only a specific owner when extracting tar archive

I have a tar archive containing two owners, 1000 and 0 : $ tar tfvz archive.tgz drwxr-xr-x 1000/1000 main/ drwxr-xr-x 0/0 main/root_dir/ drwxr-xr-x 0/0 main/...
1
vote
2answers
1k views

Untar selected files in .tar.gz file from remote ftp server?

Lets say i have a big backup.tar.gz file in a remote ftp server. I needed some files from it but i dont want to download/untar all of it. Just specific files/folder. normally this is code to select ...
1
vote
1answer
139 views

gzipped tar archive file paths

I am creating a tar.gz file containing some files and folders as follows: /bin/tar cfz /usr/local/backups/mybackup-${DATENAME}.tar.gz /usr/local/backups/db-${DATENAME}.sql.gz ...
0
votes
3answers
230 views

When I extract .tar.gz all of the files within the folders have the .gz suffix

I have recently begun using a VPS and am learning linux along the way. I have compressed a folder using tar, then I gzipped it and used scp to send it to my server. When I decompress using tar -zxvf ....
1
vote
1answer
100 views

can gnu tar detect changed directory ownership?

I'm using tar 1.15.1 (CentOS 5.5) to archive a directory. [www]$ tar -tvzf public_org.tgz 'public/files' drwxrwxr-x root/www 0 2010-12-01 07:33:33 public/files/ -rwxrwxr-x root/www ...
5
votes
7answers
2k views

running tar completely locks up mysql

I am having a seriously weird issue. If I tar some random directory with many files or a single large file tar -pcvf files.tar /var/log, mysql gets completely locked up and all mysql connections get ...
2
votes
4answers
6k views

Tar directory contents without parent and exclude subdirectories/files

Simplified directory structure: /root/test /root/test/dir1 /root/test/dir2 /root/test/dir3 /root/test/dir4 I want to tar /root/test so that when I extract the archive I get dir1 and dir2. I want to ...
2
votes
1answer
2k views

Tar not preserving Owner/Permissions

I have a file system backup in a tar archive, created with: cd / && tar -cpz -f mybackup.tgz usr/local Doing a tar tvzf mybackup.tgz yields: -rw-rw-r-- otto/otto 450 2010-04-15 ...
1
vote
3answers
428 views

tar - swap owners when moving files from dev to prod server

On the Dev server, we have a tree of files all owned by either the "webdev" or "webserv" user. I would like to tar up this file tree and extract it on the prod server, with the change that any files ...
0
votes
2answers
2k views

Differential backup with TAR relative to specific weekday

I want to have the following backup cycle on Debian Lenny: Monday : Full backup Tuesday : Differential backup relative to Monday Wednesday: Differential backup relative to Monday Thursday : ...
4
votes
3answers
511 views

Which tar file format should I use?

tar can create the archive in different formats. GNU tar, ustar, pax, v7. What would be the best for long time archiving? Is there significant differencies in these formats? I would use the best ...
4
votes
4answers
5k views

How to manually extract a backup set made by duplicity?

I have a set of files on my webserver produced by duplicity software: duplicity-full.20110315T085334Z.vol1.difftar.gz duplicity-full.20110315T085334Z.vol2.difftar.gz duplicity-full.20110315T085334Z....
0
votes
1answer
170 views

TAR and excluding directory files but kee directory

Noob alert: Can I exclude files in the directory "imagecache" but still make the directory a part of the TAR archive?
0
votes
1answer
130 views

Problem restoring from tar backup: why are there /dev/disk/by-id/ symlinks and how can I avoid them?

I'm trying to make a bare-bone backup system with the most basic tools available on openSUSE 11.3 (in this case: bash, fdisk, tar & grub legacy) Here's the workflow for my scripts: backup.sh: (...
2
votes
1answer
525 views

Why does my external USB hard drive refuse to unmount after transferring large tar files to it?

I recently need to transfer large tar files to an external USB hard drive from one Red Hat ES 5 server to another (neither with network connectivity). Originally I was trying to move ~90gig tar file ...
4
votes
3answers
9k views

How do you only tar files in a directory based on a specific file name?

I want to create a tar ball and include only the files in the directory that start with a specific filename. For instance I have apples-x.x.x and oranges-x.x.x, and I only want to tar the files ...
5
votes
2answers
390 views

tar file modified bit (am I being BS'd to?)

I'm working on a project where I'll be using tar to incrementally backup data on a server to a number of tapes. According to a senior co-worker of mine, tar will "set special flags on files so that ...