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

ubuntu server tar -xvf failed for solr.tar.gz

I am trying to extract solr server downloaded from https://www.apache.org/dyn/closer.lua/lucene/solr/7.7.2/solr-7.7.2.tgz But am getting an error on ubuntu server. gzip: stdin: not in gzip format I can confirm that I extracted this file with no…
Dr Deo
  • 157
  • 1
  • 8
0
votes
0 answers

Tar is not Finishing When Running as Cronjob

My goal is to regularly pack the most important files on a server into a tar.gz file. In order to automate this I am using a cronjob to execute a script: $ crontab -l # blablabla * * * * * /home/backup/run_backup.sh >> /home/backup/output.txt For…
Marco7757
  • 101
  • 1
0
votes
0 answers

resume tar command when nohup/screen is not possible

I have a dataset which is quite big - a few petabytes. Untarring it into a new filesystem takes a couple days. The problem is that the server does not allow me to have a process running over 24h - it gets killed, whether I want it or not. This…
0
votes
1 answer

how to create a tar file with checksums, but without compression

(note, this is not a duplicate of Creating a tar file with checksums included) I'm familiar with using tar + gzip to create a compressed tar file (tar cf - files | gzip > something.tar.gz), and gzip does add a master checksum so it will be apparent…
William
  • 137
  • 6
0
votes
2 answers

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 actually an uncompressed tarball (as if just a…
0
votes
1 answer

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 previous errors However a slightly different command…
tribbloid
  • 101
  • 1
  • 2
0
votes
1 answer

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 than -vcf seems to cause so much disk IO that…
Lookcrabs
  • 21
  • 6
0
votes
1 answer

Lost data in Tar

I had a tar file which was of size 3.5gb which held all my programming code. I was working with git trying to learn the repositories, so I created this file as a backup, so I could work my code directory and if anything were to go wrong I could just…
Recursion
  • 619
  • 2
  • 7
  • 19
0
votes
2 answers

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/me/mysqlDumpFiles to be included only if they…
Dani
  • 33
  • 5
0
votes
3 answers

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 has been made to redeploy the site on said server.…
fortesama
  • 15
  • 1
  • 8
0
votes
2 answers

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: Child returned status 1 /bin/tar: Error is not…
RobbieTheK
  • 400
  • 6
  • 18
0
votes
3 answers

ssh & tar to incrementally transfer (like rsync)

In a hosting environment that has no rsync client, I'd like to perform an action similar to what rsync does: send only those files that have changed. I would perform this one-liner on the current directory. This updates the archive.tar.gz with…
ojreadmore
0
votes
0 answers

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 * && cd .. cd b/ && tar cf ../b.tar * && cd .. I noticed that the…
Nico Schlömer
  • 215
  • 1
  • 2
  • 8
0
votes
2 answers

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 into the /var/lib/psa/dumps folder. The problem is I…
0
votes
1 answer

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 all existing contents of the target directory will…
Theo Orphanos
  • 133
  • 1
  • 10