Questions tagged [tar]

An archive file format (and the program that reads it) commonly used on Unix and Linux.

Filter by
Sorted by
Tagged with
0
votes
1answer
21 views

Prevent tar from overwriting tarball

I accidentally ran the same command twice: tar --remove-files -cf ../2019-09.tar *2019-09-* The second invocation replaced the tarball containing my data with an empty one, even though it died with ...
0
votes
0answers
5 views

Showing a tqdm progress when extracting a tar in linux

I have a heavy tar.gz file for which I want to show a pretty tqdm progress bar. The tqdm docs shows how to do that when creating a tar: tar -zcf - docs/ | tqdm --bytes --total `du -sb docs/ | cut -f1`...
0
votes
1answer
28 views

Tar restore syntax to only restore UNhidden files

What is the proper syntax for only restoring files that are NOT hidden? I'd like to copy those by hand, as needed, without bulk overwriting anything that's already there. So for example, I'd like to ...
0
votes
1answer
29 views

Tar restore with removal of pathname components

I use tar about once every 10 years and made a backup off a failed inaccessible drive that luckily worked fine. Except that instead of backing up just /home (and everything under it), it backed up /...
0
votes
0answers
15 views

Unable to unzip Yelp dataset

I've downloaded the latest Yelp dataset (yelp_dataset.tar) and am unable to unzip the file. I get the following error: "Invalid archive header found in yelp_dataset.tar". I've tried changing to .zip ...
0
votes
1answer
22 views

How do I execute a dry run of a tar compression?

I want to execute a dry run of a tar compression and print the entries to stdout without actually creating the tar. So far I've tried: // just spins $ tar t -O Downloads $ tar c -O Downloads tar: ...
0
votes
1answer
33 views

How to update tar to version 1.30+ in Ubuntu 16.04?

I work with the gitlab-ee docker image to install my local gitlab. This docker image has the OS Ubuntu 16.04 and can be found here: gitlab/gitlab-ee in hub.docker. Within these image tar in version 1....
0
votes
0answers
26 views

decode 7zip tar archive that was encoded wrong

I was moving some files from a Windows 7 PC to a Windows 10 PC. I used 7zip to add all the files to a tarball. Some of the files had Greek characters in the filename and content. I moved the tar file ...
0
votes
0answers
22 views

what happens if target directory is modified while it is being tar'd

What happens if a target directory is modified while it is being tar'd? a file is deleted (moved) from target directory before it is added to the archive a file is deleted (moved) from target ...
0
votes
1answer
42 views

Copying files using shell Scripting [closed]

hellow guys, please i need a script shell that can copy files from server to another using SCP. and put the files in temperory folder then copy from tmp to destination /product/serv/nep/ in case if ...
0
votes
1answer
21 views

website backup via cron job and “file changed as we read it” issue

I'm creating scheduled backups of a website (i.e. its "public_html" folder) via cron job and the first action is to compress that folder into a tar.gz backup ("public_html_date.tar.gz"). Sometimes I ...
0
votes
1answer
25 views

disk full after a interrupted tar command

I'm working on Ubuntu 18.04.3 I ran a tar command to compress some files (I used wrong arguments by the way) tar -cvf rep_to_files/* archive.gz The amount of files was something like 13Go. The ...
0
votes
1answer
122 views

How to change my cron job to auto update the geolite2?

A Prestashop e-commerce website is using MaxMind's GeoLite2-City database for country blocking. Instead of geoipupdate it uses this cron command to keep that database up to date: /usr/bin/curl -L --...
0
votes
1answer
67 views

Why I can't start pycharm 2019.3.1 on ubuntu?

First, I downloaded pycharm using snap, and I edited the pycharm64.vmoptions file. Then I wasn't able to launch the software, so I uninstalled it. After that, I downloaded the pycharm.tar.gz file ...
0
votes
1answer
34 views

tar every folders in a folder and delete after tar

I have a folder with a few folders and files. The name of folders is a date. like: 2020-01-16. I want to tar only and every folder in this directory, and then delete that folders after tar ...
0
votes
0answers
43 views

“Smart” fast compression for archiving mixed content?

I would like to backup a computer folder quickly to an archive format (e.g. tar, zip, 7z, gz, etc.). The folder contains many files: Some are text files that can achieve a good compression ratio. ...
2
votes
1answer
167 views

Tar not excluding directories?

I just have tried to exclude couple of directories while creating a tar archive. The directory structure is rather simple (Centos 6, tar v1.23): /test/t1 /t2 /t3 ... each ...
0
votes
2answers
87 views

How to append the contents of a .tar file to another file

I have a file named archive.tar and I want to append its contents (archive.tar is a backup file coming from a text file) to another file. I use the following command that doesn't seem to work: tar -...
1
vote
2answers
168 views

How to Specify the Target Location When Extracting Specific Files from a Tar Archive?

In light of new information I’ve rephrased the question. The old information is below in order to not invalidate answers and comments that were based on it. I’ve got a tarball tarball.tar I want to ...
0
votes
0answers
24 views

Would this tar command overwrite existing data?

So, I think the answer to this is no, however, I am still paranoid about my data - and just want confirmation from someone who is smarter than I. In my quest to copy a directory to another directory ...
0
votes
1answer
93 views

Installing tarballs on Busybox

I want to preface this with I am new to Linux. I am trying to install some libraries (and a program that depends on them) on an embedded Linux server running Busybox v1.20.2. I am not able to run ./...
3
votes
1answer
184 views

Download and extract archive using PowerShell

Using PowerShell 5.1, how can I download a tar.xz archive and extract it without writing it to disk first? All these attempts: Invoke-WebRequest https://www.examle.com/archive.tar.xz -...
0
votes
0answers
24 views

Tar: is there a way to exclude directories whose name match a given regex?

More specifically, I have a workspace directory containing several coding projects, which in turn contain node_module directories. I want to create a tar.gz of my workspace while excluding all ...
0
votes
1answer
55 views

Is there any fast way to extract a single file from tar?

I have a large tar file, almost around 150GB. I need a single file from it, and am having trouble even estimating how long it would take to extract. If I do tar -xvf mytar.tar file.txt, nothing ...
0
votes
1answer
30 views

tar.gz folder and use folder name as name for the archive

I have multiple folders called "runs" in my directory structure that I would like to create seperate archives of because they contain a unmanageable number of files". For this reason, I'd like to use ...
0
votes
0answers
22 views

Ubuntu Windows git from source code

I am installing Windows and following the instructions.  All application run in apt, but then the last step is to download from source.  I am stuck. I downloaded the tar file, but when I try to see ...
0
votes
0answers
315 views

matplotlib installation error in windows 10

Installed Python to path and tried installing matplotlib via command prompt using pip, but instead after typing the command: C:\Windows\system32>python -m pip install -U matplotlib I get this ...
0
votes
2answers
172 views

How to extract several folders from a very large .tar.gz file on Windows 7?

I have a 150 GB tar.gz file and a Windows 7 machine. I cannot decompress the whole file because it would require a lot of space which I do not have, thus I am looking for a way to extract only several ...
0
votes
2answers
69 views

add to TAR and split archive of 147k files in a directory

I have to migrate a website where are 147.000 images files in a single folder. I try to compress with gzip / tar but exited without any error message, and the archive file is 0 byte long. $ tar cvf - ...
0
votes
1answer
23 views

Tar complete vps server does not end - 24 hours

I need to do a complete reinstall. On my VPS Ubuntu 16.04 i got the problem my backup process wont end. I checked the data usage on my hard disk and the usual size is already backed up in less then a ...
1
vote
1answer
398 views

How to import a previously exported Ubuntu tarball in WSL?

My question is continuation of post https://superuser.com/a/1435841 I had installed WSL, installed Ubuntu app from Microsoft Store, made smth into Ubuntu, then I backed it to tar archive by command ...
0
votes
3answers
69 views

Is there a way to estimate how much space a file or directory of a given size will take up after being compressed with tar and bzip2?

Due to an imminent distro switch, I would like to backup my home directory. However, my home directory is 29 gigabytes. I would like to know how much space this would take up after being compressed ...
0
votes
1answer
282 views

TAR error — `wp-content: file changed as we read it`

Background I have a bash alias I use to back up a Wordpress home folder. The command is run from /home/waiheke26/sites/www.DOMAIN.co.nz/public The command is: tar --exclude='./wp-content/uploads' \...
1
vote
2answers
44 views

Trying to send a tar over ssh but its being decompressed when sent

Im trying to tar a directory and send it over ssh to another server, but I want it to be sent with tar format not decompressed as the following script does tar -czf - Documents | ssh user@server tar -...
0
votes
0answers
26 views

7-zip incorrectly lists content of incremental tar archive

I recently fell in love with the incremental functionality of gnu tar, which I use for my backup script: tar --create --gzip --file=$archive_file $NEXTCLOUD_DATA_DIRECTORY\ --listed-incremental=...
0
votes
1answer
44 views

send folder via ssh then compress and send it back

I need to send folder with eml files from "A" to "B", then compress them with 7z and send back to "A" what i have is ssh user@server "tar -cf - .folder" | 7z a -si compressed_folder.7z but it makes ...
0
votes
0answers
97 views

tar does not preserve owner and permissions even when invoked as root

I am attempting to tar files from my hard disk to an external disk, both of which are ext4 filesystems. For some reason, even when invoking tar as root on extraction (which should automatically enable ...
0
votes
1answer
76 views

extract files to a relative path from a tar file that was creating with -P flag

I'm creating a tar file using the -P flag, meaning that all paths are absolute (leading / is not stripped from files names). I use it because I'm tarring multiple directories and I need each file to ...
1
vote
1answer
117 views

How to remove make error during uboot build in altera arria 10?

I am building Linux OS for our custom board which uses Altera Arria 10 SoC. My Linux Version is 14.04 and by taking reference from below link, I am designing Uboot https://www.intel.cn/content/www/cn/...
1
vote
1answer
682 views

Symbolic Link Issue Extracting Tarball on Windows

I am having an issue with extracting this gzipped tarball (direct link) on Windows platform. The problem is that the tarball contains symbolic links & the Windows platform does not know how to ...
0
votes
0answers
41 views

Having trouble installing and writing rules on Snort w/ Mac

I installed Snort on my Mac Mojave v. 10.14.5, but am having difficulty installing the rules. First, I installed Snort on my terminal with the command "brew install snort." Then I ran into a set of ...
0
votes
1answer
95 views

Extracting a file in solaris

I'm try to extract a file in solaris to a folder. I have tried following combinations but no luck. gunzip -c jdk-8u211-solaris-sparcv9.tar.gz > /opt/java/jdk8.2.11 I'm getting a is directory ...
0
votes
1answer
77 views

How to tar up multiple folders, some recursively, some non-recursively

I have a list of directories. Some of the directories require them to be tared up recursively, other require only the file that exist in that directory, no subdirectories: Using the directory/files ...
-1
votes
1answer
392 views

Updating Windows 10 Enterprise LTSB

I was wondering if someone could help me figure out how to update Windows 10 Enterprise LTSB. Specifically, I am wanting to get the tar command that is in the more recent builds of Windows 10. I have ...
0
votes
0answers
20 views

How to restore a specific file using a backup in Debian

I have a file which has become corrupt and is making my machine malfuntion, i have a system backup as a .tgz file, i want to restore this specific file using the file in the backup, but i dont want ...
0
votes
1answer
50 views

Why does each subsequent append to a tar archive take longer?

I am constructing a tar archive of size 4.2T in increments of ~440Gb. The timing to complete each of the increments (sections) is given below. Section 1 [486.01 seconds] Section 2 [623.42 seconds]...
1
vote
1answer
36 views

Emailing 13MB base64 creates extra 19MB .com

My daily backup script had to be changed to create base64 file instead of regular .tar.gz a while ago: Filename64="$Filename".64 cat "$Filename" | base64 > "$Filename64" echo -e "to: $EmailAddr\...
0
votes
1answer
72 views

tar command for getting files for periodic backup

What tar command should I use to get files changed after a given date--including changes to ownership, permissions, etc.--but excluding files that were simply restored from backup? On the other hand, ...
0
votes
1answer
46 views

Serving tar.gz file through AWS Cloudfront?

I would like to keep things tidy on the S3 bucket where my website's assets live. Currently I am uploading all assets to S3, as part of the CI/CD pipeline, this has got a bit messy since generated ...
0
votes
1answer
88 views

tar with “-O, --to-stdout” doesn't correctly show all files

I've got this file structure: tree . . ├── AAA │   ├── a1.txt │   ├── a2.txt │   └── a3.txt ├── AAA.tar.gz ├── BBB │   ├── b1.txt │   ├── b2.txt │   └── b3.txt ├── BBB.tar.gz ├── CCC │   ├─...

1
2 3 4 5
14