Questions tagged [tar]

An archiving program for storing and retrieving files as a collection with support for data compression.

An archiving program for storing and retrieving files as a collection with support for data compression. It is mainly used for compacting multiple files into single one, for easy transporting or compression.

Its name comes from Tape ARchive

2690 questions
0
votes
2 answers

How do I handle GNU long filenames in Java when using org.apache.tools.tar.* classes packaged with install4j?

I am trying to add an Run Script to install4j that handles the unzipping and untarring of tarballs for things like like mysql and tomcat that are getting embedded in my installer. I realize that I could explode these tars as part of the build…
Frank
  • 165
  • 1
  • 13
0
votes
1 answer

Automator Application to Tar File

I have tried creating an application in Automator that when double clicked, will tar my To-Do.txt file. The command I'm using is pretty standard: tar -cvzf ToDo.tar.gz /Users/myusername/Desktop/To-Do.txt The above command works perfectly when…
ThisDarkTao
  • 1,062
  • 10
  • 27
0
votes
1 answer

PHP Backup Script to backup public_html only

$filename= "Backup.tar"; // The name (and optionally path) of the dump file $ftp_server = "IP"; // Name or IP. Shouldn't have any trailing slashes and shouldn't be prefixed with ftp:// $ftp_port = "21"; // FTP port - blank defaults to…
Tom
  • 1,215
  • 3
  • 19
  • 30
0
votes
0 answers

How to add files and directories to a Tar package in PHP?

I'm seeking a method which can add files from different locations into a compressed package(with some other path structrues), and create new directories in it (DO NOT create a real dir on the filesystem). Any good idea?
Determinant
  • 3,886
  • 7
  • 31
  • 47
0
votes
1 answer

Can't extract nodejs source file with tar

I recently tried to install nodejs on Ubuntu Natty on my WMWare Workstation. I got the source file from here. And I'm following the instructions for doing that here However, when I try to extract the dowloaded archive I get an error. I enter this…
ObiHill
  • 11,448
  • 20
  • 86
  • 135
0
votes
1 answer

How to create tar that gets updated for 2 weeks

I need to setup a bash script which tars and compresses a directory. The tar should be updated every day after that point with the same directory. This should happen for a duration of 14 days until the tar is finally removed and the process is…
user420095
0
votes
1 answer

wait for shell script to finish before going to next line with Cron

--- file makebackup.sh #!/bin/bash mysqldump --all-databases | gzip -9 > /backup/temp_db.gz tar -Pcf /backup/temp_ftp.tar /public_html/ tar -Pcf /backup/temp_backup.tar /home/temp_db.gz /backup/temp_ftp.tar wait %% /backup/upload.sh --- file…
JohnA
  • 1,875
  • 8
  • 28
  • 34
0
votes
1 answer

How to make a script auto install under Ubuntu

I have pretty big assignment where I had to create some files for word frequency checks and a bash script connected with a crontab to make these function run under a specific set of folder every 5 minutes. The last step here is to somehow compress…
0
votes
3 answers

Concatenate files on Windows, and reverse operation

I'm currently trying to find a way to concatenate several files, typically all files from within a directory (recursive included) into a single stream, for further processing. TAR looks like an obvious candidate, except that it is not at all…
Cyan
  • 13,248
  • 8
  • 43
  • 78
0
votes
1 answer

Installing npm fails on Mac OSX

I receive an error when installing NPM as follows: gzip: stdin: decompression OK, trailing garbage ignored /usr/local/bin/tar: Child returned status 2 /usr/local/bi/tar: Error is not recoverable: exiting now It failed My set up: Mac OS X…
0
votes
3 answers

Where can I download the TarWriter rubygem?

I can't find this anywhere... the rubydoc is all over a google search for this package, but where is the the gem/install command?
Tony R
  • 11,224
  • 23
  • 76
  • 101
0
votes
1 answer

how to tar last few lines

Is it possible to create a tar of only the last few lines of a file? Something like this does not seem to be working. tail abc.xml | tar -zcf bac.tar.gz I am trying to keep the compressed file size as small as possible. I do also want to transfer…
shantanuo
  • 31,689
  • 78
  • 245
  • 403
0
votes
0 answers

GitHub Actions | Incorrect File Type | Tar

I have a GH actions where I upload a tar file to JFROG and then download to extract to process it further. If I put the upload and download code is same yml file, the file type is shown as tar gz and I'm able to unzip as well. However, if I put the…
AD90
  • 179
  • 2
  • 2
  • 9
0
votes
0 answers

my jupyter notebook has permission problems, it can't extract files

i'm running a colab locally with notebook running under anaconda, it gets stuck extracting files with tar and gives me error "PermissionError: [Errno 13] Permission denied:…
0
votes
2 answers

How to estimate the extracted size of a tar.gz file without extracting it in PowerShell 7 (Windows 11)?

I have a tar.gz file that is about 1.39GB. I want to estimate the unzipped size before I actually extract it to avoid filling up my disk. This is for my work and I can only use my work PC (Windows 11) for it. I'm using PowerShell 7. What is the…
Yee
  • 13
  • 3