Questions tagged [tar]

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.

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. The name “tar” originally came from the phrase “Tape ARchive”, but archives need not (and these days, typically do not) reside on tapes.

347 questions
0
votes
1 answer

Use tar to exclude one directory (but not another) that matches a pattern

I'm working on doing a pretty straightforward tar for a site, but there's a wrinkle. Here's the file structure of the site: ... files/ images/ images/visitors/ ... logs/ ... visitors/ Here's the problem: I want to exclude all the…
0
votes
3 answers

zip does not work for big files

What is the best way to compress a file if it is more than 4 GB in size? I am using the following for last several months. mysqldump --all-databases | zip > mybackup.zip Today I am got an error: zip error: Entry too big to split, read, or write…
shantanuo
  • 3,579
  • 8
  • 49
  • 66
0
votes
2 answers

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 backup schedule should only be updated the next…
Hari
  • 9
  • 1
0
votes
1 answer

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 change in the command in order to create the KIT…
Diana
  • 261
  • 4
  • 10
  • 19
0
votes
2 answers

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 keep being told CRC failed, file is…
darkAsPitch
  • 1,931
  • 4
  • 25
  • 42
0
votes
1 answer

Update default tar location (CENTOS)

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 /usr/local/src unpacked it and installed it…
Carter Cole
  • 103
  • 3
0
votes
2 answers

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 directories over after compressed using tar or zip.
jnolte
  • 285
  • 1
  • 4
  • 11
0
votes
3 answers

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 of folder remains compressed. Before compression…
0
votes
1 answer

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

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 new name or path. For example if my archive has the…
PeanutsMonkey
  • 1,892
  • 9
  • 27
  • 28
0
votes
2 answers

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 list don't exist anymore. So tar keeps saying…
gmuller
  • 53
  • 1
  • 9
0
votes
1 answer

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 cat backup.log foo1 foo2 ... I changed it to tar cvf…
rodfaria
  • 1
  • 1
0
votes
1 answer

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 compression: dest_ext ='.' +…
Mirage
  • 561
  • 4
  • 10
  • 25
0
votes
1 answer

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-linuxamd64.64.tar.gz and get this error: tar:…
Genadinik
  • 1,103
  • 4
  • 19
  • 39
0
votes
2 answers

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 "live" folder I would like to have a small script…
edotan
  • 1,876
  • 13
  • 39
  • 57
0
votes
3 answers

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 .tar.gz, all of the files within the folder still…
mikeyrocks
  • 101
  • 1