Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
12 views

extracting webmin using tar [closed]

I just downloaded webmin as a .tar file and I now using the following command to extract it: tar -zxvf webmin-1.890.tar.gz However, after I run this command, I get a pretty large error log. I have ...
0
votes
1answer
83 views

Apache server causes tar.gz files to download as uncompressed tarballs still named .gz

We are hosting a number of .tar.gz files on our Apache server. When we download these files, the filename of the downloaded file is the same as on the server... something.tar.gz... but the file is ...
1
vote
1answer
29 views

Is GNU tar incremental backup reliable if ext4 is mounted with noatime?

My system is running on SSD on top of LVM logical volume, formatted to ext4. I'm using noatime option at my fstab for this partition. I'm going to do incremental backups of system partition using LVM ...
0
votes
0answers
27 views

Searching for files within HDFS folder packed inside Tars/GZips?

Is there an easy way to search a directory in HDFS to list-only tar contents or gzip contents and then flag to console that it is inside this or that tar/gzip? Do I have to run some sort of python/...
-3
votes
1answer
90 views

tar -z is very slow [closed]

I know this question has been asked before and I saw the recommendations on using pigz. Good recommendations, but I wanted to see if I really have a "problem". I have an esxi host. It's the free ...
0
votes
1answer
28 views

Why tar is incapable of changing current directory?

The following command: tar -C "${HOME}/temp" -zcvf uber-bundle.tgz temp fail with the following error: tar: temp: Cannot stat: No such file or directory tar: Exiting with failure status due to ...
1
vote
1answer
57 views

Create a zipped tar archive of a full centos filesystem, and open in Windows

I'm trying to create a zipped tar archive of all files on a centos 7 machine. I'm using this command: sudo tar -cvzp --exclude=backup --exclude=swapfile -f /backup/archive/full-backup-$today.tar.gz -...
-3
votes
3answers
170 views

How to tar 30 Gigas of data on a 50 Giga server?

I need to send the content of a folder (full of JPEG pics) to a client. My server has 50 gigas and folder has 30 gigas. (Zipping JPEG is useless since JPEG is already compressed) Any idea/strategy ...
0
votes
1answer
77 views

how do I extract a tar archive with larger block size?

I have a tar ball that has a huge number of very large files. The blocking factor is 10k. This is taking too long to extract because it does a lot of 10k writes. The filesystem will perform better if ...
0
votes
2answers
87 views

shasum of tar file different on os x / ubuntu although files are identical

I have a problem that brings me to despair and is plaguing me for the last days and I hope somebody can give me a hint what I have overlooked, since bash/sh is not a field I work in everyday: ...
1
vote
0answers
146 views

TAR command exit status non 0, with the option ignore command error

I'm trying to make a tar of a logs directory, the applications are running so the logs keep changing, clearly when i run the tar command it give me the warning: "file changed as we read it", and give ...
4
votes
3answers
1k views

Compression on tape set..but at 2.27TB..end of space

I have a LTO6 tape inserted tapeinfo -f /dev/st0 Product Type: Tape Drive Vendor ID: 'QUANTUM ' Product ID: 'ULTRIUM 6 ' Revision: '4142' Attached Changer API: No SerialNumber: 'HU1322VW9U' ...
2
votes
2answers
485 views

Tar does not retain directory permissions

I am copying a directory structure of hundreds of millions of small images between two servers. The file structure, ownership and permissions needs to be retained during the copy. Our testing has ...
1
vote
1answer
479 views

“Cannot close: Input/output error” when extracting tar on NFSv4 share

I have been trying to get to the bottom of a strange errors when extracting tar archives on an NFS share. The errors manifest themselves when extracting a tar files which include files which have ...
14
votes
2answers
2k views

Get files from server two steps away [closed]

We have the following situation: My machine A gateway machine The target machine I have no root rights on both #2 and #3. I can also not really store information (no more then 200 MiB) on machine #2 ...
-1
votes
1answer
501 views

How to extract a tar file compressed multiple times over [closed]

Due to some runaway poor scripting some files meant to be archived were compressed five or six times over. So there are files like this: a_log_file_0.log.1.tar.gz.tar.gz.tar.gz.tar.gz.tar.gz Please ...
0
votes
1answer
55 views

tar of pg_dump huge await. Do additional writes to a luks encrypted disk require additional entropy?

We have a postgres server with 6 SSDs in a raid10. backing up the postgres database with pg_dump works fine and causes almost 0 load to the disks or cpu. Tar'ing said pg_dump without any options other ...
-2
votes
2answers
298 views

Cron-Job / Backup entire Ubuntu System with tar, atfer this rsync this archive

I want to create the cron-job for the following steps: Backup my entire ubuntu server with the following command: tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --exclude=/proc --exclude=/tmp --...
1
vote
2answers
188 views

fail to perform Incremental Backup with TAR

Environment: Ubuntu 16.04 in Azure I'm attempting to backup specific folders. I'm using a simple tar command with no compression. My objective is to keep the file for a month, adding changes ...
1
vote
1answer
342 views

tar throwing input/output error when reading from tape, but file is ok

I've written about 1.5TB of files onto a tape with tar -b 512 -clpMvf /dev/nst0 /path_to_stuff Everything worked well, no error messages. Now if I try to read it back from tape with tar -b 512 -...
0
votes
2answers
206 views

tar newer files in the first directory but ignore mtime for the second

I am trying to make a backups of some files on my server using tar but I cant seem to get it to do what i want. I've Googled for a solution but i cant seem to find the right one. I want files in /home/...
0
votes
3answers
1k views

How to split a large .tar.gz on a Windows machine to upload on a Linux server?

I downloaded a rather large (6GB) backup file from a cloud Linux server about a week ago before it went down to my Windows laptop. We just got ourselves a new cloud server just now and the decision ...
1
vote
1answer
130 views

tar error to a Drobo FS: Cannot close: Input/output error, Exiting with failure status due to previous errors

We've been running this tar backup from a Fedora 25 workstation to a Drobo FS for a couple of years and in the past few weeks it's starting to error out with the following but does seem to complete: /...
0
votes
2answers
108 views

Fedora 25 tar errors from backup script aquota.user: Cannot time Operation not permitted

We just upgraded to Fedora 25 and re-enabled our tar/gzip backups to our Drobo units. These errors just started happening after re-enabling the backups. gzip: stdout: Input/output error /bin/tar: ...
-1
votes
1answer
316 views

Use SSH to copy remote files to local NAS drive

I'm looking to create a script that logs into a machine and pulls back files to a NAS server. The files will be put into a compressed file as it downloads. Because the script will be looking to ...
3
votes
1answer
71 views

Find files and tar.gz the resulting list

Executing the following command works as expected: find /path/to/logs/ \( -type f -name '*20161005.log' \) -print0 | tar -czvf /path/to/backups/backup_logs_20161005.tar.gz --null -T - But, trying to ...
1
vote
1answer
76 views

tar: extract a member reliably with possible leading dot-slash

Let’s say I have two tar archives generated in slightly different way: $ tar tvf archive1.tar -rw-r--r-- root/root 567 2016-09-18 14:28 member1 -rw-r--r-- root/root 1696 2016-09-18 14:28 member2 $ ...
0
votes
1answer
138 views

Issue with tar -N command not filtering dates correctly

I have this tar command I am trying to run - tar -N '2016-01-01' -jcvf archive.tar.bz2 /home/myhome Inside of the home directory, I have the following files that should be filtered -rwx------. 1 ...
3
votes
2answers
386 views

Is it safe to create tarball while files are in use?

Is it safe to create a tarball of a directory while the files in the directory are being used (read+write)? I want to create a backup of a 20GB directory without having to shut down my application ...
1
vote
1answer
55 views

Restore data from tapes made on old irix system (on linux)

Hey guys I'm looking for some help. I'm trying to get the data off of some old SDLT tapes probably 11+ years old. I don't know anything about them besides they were made on an irix system and I do not ...
0
votes
0answers
45 views

tars with equal content have different checksums

Given are two directories a/ and b/ with apparently equal content, $ diff -Naur a b $ After packing the contents of contents of the directories in to tars, cd a/ && tar cf ../a.tar * &&...
1
vote
0answers
129 views

How to backup and restore with tar in a software raid 10 configuration?

I've successfully backed up and restored using tar with VPS that were not raided. Now I have a setup at my residence that requires raid, specifically raid-10. If I attempt to restore the tar it fails, ...
0
votes
2answers
327 views

CentOS issue extracting Plesk backup tar

I am currently moving to a new server and have a Plesk backup file in Dropbox made with the Plesk Dropbox Backup extension, the .tar file is around 55GB in size. I have downloaded it to the server ...
1
vote
0answers
442 views

Device busy when reading from tape drive with tar

When I try to read a tar from tape with tar tvbf 2048 /dev/nst0, it returns: tar: /dev/nst0: Cannot read: Device or resource busy tar: At beginning of tape, quitting now tar: Error is not recoverable:...
0
votes
1answer
77 views

Tar file extract everything in archive but one specific folder

I am using tar -xf archive.tar -C /home/user/target/folder (in a bash script) to extract the contents of a specific archive (archive.tar) into the target directory (/home/user/target/folder) so that ...
2
votes
1answer
310 views

tar --listed-incremental includes all directories in each increment?

Given a tree structure with files in it, say: source |-- bar | +-- three.txt |-- baz | +-- four.txt +-- foo |-- one.txt +-- two.txt If I do tar czvf dest/archive-1.tgz --listed-...
0
votes
1answer
56 views

Linux CLI Make a Tar.Gz with Tar.Gz First-level Directories

Currently, I use this command to make tar.gz archives: sudo tar -zcpvf archive.tar.gz directory1 directory2 directory3 Is there a way to compress multiple archives like above, but instead of ...
3
votes
1answer
199 views

Why am I getting different SHA-1 checksums for tar of identical mongodump backups?

I am trying to backup my MongoDB database and check for changes with a SHA-1 checksum. The problem is that the checksum is not the same. $ mongodump --quiet --db backup --out . $ tar -cf backup1.tar ...
-1
votes
2answers
674 views

Find all files which contain pattern in directory of tar files

I have all tar files in a directory. I want to find some files in tar files without extract all tar files. I know how to work with one tar file: tar tvf abc.tar | grep xyz I want to find in all tar ...
0
votes
2answers
1k views

Running the tar command with the --exclude functionality does not work for directories

I use tar hczf t.tar.gz * --exclude="./test1" where test1 is the name of a directory that I want to prevent from being tarred. Unfortunately, tar still includes the directory test1. How can I have ...
0
votes
1answer
27 views

List files that will be overwritten by tar extraction

Say I have a tarball ~/foo.tar containing foo/ foo/bar.txt foo/baz.txt foo/qux/ foo/qux/corge.txt foo/qux/grauply.txt And in my home directory ~ I have an existing foo directory and the existing ...
1
vote
2answers
639 views

Blob not found: Error when uploading tar.gz to Azure storage container using linux script

Error The portal displays this Blob not found. error This is the XML error I get when I hit the download button <Error> <Code>ResourceNotFound</Code> <Message> ...
0
votes
1answer
533 views

How can I check if a directory contains the same files of a TAR archive?

Let's say I have a folder Documents and a TAR file Documents.tar, how to check if the tar file contains the same files that are present in the directory? The more obvious solution to me would be to ...
0
votes
1answer
185 views

Exclude directory when creating tarball

I am trying to exclude a directory from getting tarballed. I have tried many combinations but the cache directory is still getting added. The directory I want to tarball is: /var/www/vhosts/latest/...
3
votes
4answers
812 views

Would rsync be better than tar, wget and untar?

I am migrating to a new server and, as well as html/php files, have a directory which contains around 90,000 files totalling 24GB in size which needs to be moved. When I did a test migration, I used ...
0
votes
0answers
436 views

Docker daemon can't import tar with duplicate files

I've been following this tutorial to create a docker image from a buildroot environment: https://blog.docker.com/2013/06/create-light-weight-docker-containers-buildroot/ Basically, the steps are: ...
2
votes
1answer
205 views

Archiving bunch of files in the fastest possible way [closed]

I'm implementing a torrent downloading and archiving system. I want to download a torrent file (which contain several small files) and then archive it. My Disk performance is poor. so i want an ...
1
vote
2answers
355 views

Most side effect-free way to archive a large file while it is being modified

I am looking after an application that generates a large amount of data in a log file (about 5G a day) on a Red Hat server. This process runs for 24 hours during the week, so there is no point in the ...
1
vote
1answer
169 views

gzip select directories into separate archives

How would I go about compressing a list of directories into separate archives? I have read solutions that just archive all the directories within a given dir, but there are some I want to skip. ...
0
votes
1answer
2k views

wget and pipe to tar in the background

I am trying to download a large file which is .tar.gz and (> 2GB) in size. The bash script also does lots of other things, so I want to kick off the download and then continue processing other ...