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.

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

Tar directory is new error

I am trying to make a backup of two directories, /etc/httpd and /etc/letsencrypt I am using the command tar Pcfvg httpd_backup.tar /etc/httpd/ /etc/letsencrypt/ >/dev/null The redirect to /dev/...
0
votes
1answer
22 views

Does tar create point-in-time snapshots?

I know that tar can be used to create a backup. However I wonder if the operation creates point-in-time backups or not. Basically I wonder if it grants consistency if the directory and files are ...
0
votes
0answers
13 views

Error while trying to backup site files

# tar -czf /backup/backup.tar.gz /var/www/html tar: Removing leading `/' from member names tar: /var/www/html/wp-content/uploads/2020/02: file changed as we read it # ls -la total 17160456 drwxr-xr-x ...
2
votes
2answers
165 views

Hash files in tar file

I have two *.tar files with similar contents. I want to verify which files are the same. A lot of the files are big so I comparing hashes would require extracting every file from each tar and ...
0
votes
0answers
18 views

SolusVM Xen Backup Speed

I need an advice about the speed of VM backups done by SolusVM. We are running a few VMs in Australia with BinaryLane.com. They are running KVM (not SolusVM). The time to backup a 50GB full VM there ...
0
votes
0answers
17 views

Force tar to exit immediately on error instead of delaying?

Using GNU tar v1.3.0 on Linux, I'm having a problem processing large archives that may result in one or more files causing a write error (due to permissions or some other circumstance). When ...
0
votes
0answers
49 views

tar | pigz dies if run under cron

I run a kind of backup script using tar joint with pigz for compression. The problem is that tar -zcf /file.tar.gz /folder runs under cron. While tar -I pigz -cvf /file.tar.gz /folder nor tar ...
2
votes
1answer
53 views

Best strategy for daily back up of terabytes of data with millions of files

Currently I create an NFS and mount it on a special server that does the actual backups and uploads it to s3. My main concern is I feel like overcomplicated this simple task. I schedule cron job to ...
0
votes
1answer
202 views

Why tar flag --strip-components ignored sometimes?

I have an automated docker images build where I download elasticsearch archive and extract it via: tar zxf archive.tar.gz --strip-components=1 -C /path/to/dir And it always worked until the latest ...
0
votes
1answer
121 views

How to exclude a folder by name recursively when making a tar archive?

I know it is possible to exclude a particular folder by a command like this: tar --exclude='/srv/www/project/node_modules' -zcvf /backup/project.tgz . My question how to exclude all folders named ...
1
vote
1answer
263 views

Backup to remote server and create tar on the fly

I would like to backup a directory from my production server to a backup server using rsync. My current solution: tar directory on production server send to remote server via rsync My Problem with ...
0
votes
0answers
21 views

Could a Samba process or tar have changed the permissions on a Samba share?

On a server running CentOS 7 and Samba version 4.8.3 I was working in a samba share /home/share. All the sudden I was getting an error message that I didn't have permission to access it. I tried this ...
1
vote
2answers
88 views

Extracting single file from large tar.gz file

I have an incredibly large tarball. I'd extract several files out of many thousands within the archive. I'm on CentOS 6.10 running GPFS 4.2.3. I've seen from this answer that pigz is useful in ...
0
votes
1answer
23 views

Command/script to extract “sub-tarball” from tarball

I am aware of that I can extract single/multiple files from a tar archive, but is there a command that I can easily pass to immediately create a "sub-tarball" from an existing tar archive? This is ...
0
votes
2answers
138 views

How to untar a very large file with missing space

I have reinstalled my server and before that i did a backed up. My backup is a tar file without special compress option (meaning that the size of the tar file is approximately the same than the size ...
0
votes
1answer
79 views

abnormal very high CPU during lengthy write operations

I have a set of large files which I sometimes copy back and forth between a Linux box and a Windows box. The files are each about 2 GB, and there tend to be 10 or so of them (they're a VM image). ...
0
votes
0answers
41 views

Unpredictable tar performance on kubernetes pod

We have a java spring web app running inside a kubernetes pod. An end user action causes the web app to Runtime.exec a GoLang script that besides other housekeeping stuff, tars up an uploaded file. ...
0
votes
1answer
26 views

Uploading files using tar

Can you help me? I have this piece of code that I'm using on my Ubuntu 16.04 server tar -c /var/www/dxa/backup.zip | ssh <my-server-ip> -p 8000 'tar -xvf - -C /' But everytime I run this ...
0
votes
1answer
521 views

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 ...
1
vote
1answer
161 views

Backup a whole server over the network using tar

I have a server that is 80G total size and has no more space so i cannot backup on the server. I found this command ssh server2 "tar -zc -C /srcdir ./path" | tar -zx -C /destination but it is not ...
0
votes
0answers
15 views

Tar is not Finishing When Running as Cronjob [duplicate]

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/...
0
votes
0answers
28 views

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 ...
2
votes
1answer
1k views

NFS - Very slow performance with small files (Also with CIFS)

I am having very bad performance with NFS between two debian stretch machines, and I can't find a solution. I am using rsync at the server side in the exports file and tcp,hard,intr,rsize=32768,wsize=...
1
vote
1answer
115 views

Tar archive error message

I am getting following error while archiving the user's homedirectory. (trying to migrate a user from one macbook to other since the user's keys are associated with AWS and other tools) tar cfv ...
0
votes
1answer
264 views

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 ...
1
vote
1answer
1k views

This does not look like a tar archive

I'm trying to fast copy some big directories from my remote Debian 9 server to my local Debian 9 on WSL (Windows Subsystem for linux; Windows 10 Pro) with ssh "tar" | tar pipe. ssh user@example.com "...
0
votes
1answer
27 views

The write permission of files disappear after the files are copied between 2 remote system using FTP

I have setup FTP between 2 remote systems and scripts are set up on both the system to Archive and Extract the file. So the script in the source Archives(tar) file and the script on the destination (...
-1
votes
1answer
174 views

How to recover a TAR file from a partially overwritten XFS disk?

This is the scenario. The environment is Linux (Arch Linux actually). An uncompressed 1,3TB tar file has been written on a freshely XFS-formatted 2TB disk as a backup. Later on, a 586MB UEFI boot ...
1
vote
4answers
528 views

How do i remove the path names from the files i have archived.. UBUNTU

I've been tasked to archive certain files into a new directory at /home/archive/. I used this command: mkdir /home/archive cd /home/archive tar -cvf log.tar \ /var/log/auth.log /var/log/...
0
votes
2answers
629 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
102 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 ...
-2
votes
1answer
711 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
31 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
148 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
181 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 ...
1
vote
1answer
386 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
337 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: ...
2
votes
0answers
418 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
2k 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
2k 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
2k 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
3k 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
96 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
519 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
324 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
1k 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
631 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
3k 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
280 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: /...

1
2 3 4 5
7