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.

learn more… | top users | synonyms

0
votes
0answers
14 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
22 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
46 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
36 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 ...
0
votes
1answer
23 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 ...
0
votes
0answers
28 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 ...
0
votes
0answers
26 views

Copying preserving file and directory symlinks and symlink destinations

I have a directory with a bunch of files and symlinks in it, for example (not related to my actual hierarchy): src/usr/bin/ls -> src/usr/bin/busybox src/usr/bin/echo -> src/usr/bin/busybox ...
0
votes
0answers
45 views

cygwin tar preserving Windows file permissions

In addition to our VM level backups, I would like to have a 2nd backup of certain files that changed in the last 24 hours written to an archive on another server. I have 1 windows and 1 linux server ...
0
votes
1answer
31 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 ...
0
votes
1answer
32 views

Taring mongodump database produce different checksum

(I am french so sorry for bad english) I am trying to backup my mongo database and check for changes with a sha1 checksum. The problem is that the checksum is not the same. $ mongodump --quiet --db ...
-1
votes
2answers
75 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
30 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
14 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
136 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> ...
0
votes
1answer
84 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
36 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: ...
3
votes
4answers
404 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
77 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
40 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
56 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
103 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
300 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 ...
0
votes
1answer
293 views

bsdtar vs gnu tar - sparse files

I've been working with qemu raw images and I just had a few questions about using tar with them. From what I've read, bsdtar with kernel >= 3.1 is able to handle the sparse image files much quicker ...
0
votes
2answers
69 views

Tar content without a specific directory

I have a magento installation I would like to tar. As some of you may now, in the root directory of a Magento installation is a directory called "media". This is the directory where all product images ...
0
votes
1answer
100 views

zip of files with extended attributes

I need to archive and compress a large number of files but some of those files may have extended attributes whose content I don't want to lose. My understanding is that zip doesn't do that. Is there ...
0
votes
3answers
364 views

Create tar file on Solaris and untar the file on Linux is it right?

I want to create tar file on Solaris (Solaris 10 ) as Kit.tar and untar the Kit.tar on Linux machine ( linux red-hat 3/4/5 ) Can we be safe with that untar process on Linux machine? , I want to be ...
0
votes
0answers
50 views

inconsistent behavior of files created by an archive / ssh / tar command

Working on a deploy script, I ran into issues that I cannot explain. We have a production server (Ubuntu server 10.04), a repository (Gitlab), and a development server (Ubuntu 14.04). I work on the ...
0
votes
1answer
101 views

Create tar on remote server and send it back over SSH

All the scripts I've seems to be pushing code from server to a backup server, I am trying to set the backup server to pull code from a live server. I've managed it with the sql: ssh -C ...
1
vote
1answer
111 views

Archiving large number of files with TAR

Trying to clean up a directory on an HP/UX system that has a stupid number of files. I've already tried: Create an archive of all files older than "x" days. (This method, using the find command, even ...
3
votes
1answer
205 views

Cannot extract .tar.gz archive in bash

I am in my /w dir and I saved the .tar.gz archive from the MediaWiki server like this: $ cd /public_html/w $ wget releases.wikimedia.org/mediawiki/1.24/mediawiki-1.24.1.tar.gz But once I try to ...
0
votes
1answer
183 views

Pipe multiple files into one tar gz

I'd like to call mysqldump to create multiple backup files and then archive them in one tar.gz. I am following this tutorial on mysqldump part: ...
1
vote
1answer
109 views

tar wildcards in files-from

Trying to run tar with --files-from. I have a file files.txt that contains /dir1/files*.txt However it complains that /dir1/files*.txt does not exist, but ls proves that it does. I tried to also ...
3
votes
1answer
280 views

In tar how can I exclude dir contents but leave empty dir

I want to create a tar file excluding certains folders who have many sub-folders and files, but leaving only the main folders that's being excluded. Explaining: -project |-dir1 |-dir2 |-cache ...
1
vote
1answer
429 views

s3cmd: on-the-fly backup

To do backups I created a script that makes an archive of all the folders I need to backup, sends it to S3 (through s3cmd) and then deletes it after upload has been completed. I'm looking for a way ...
3
votes
2answers
1k views

BackupPC Taking over 72 hours to backup 250GB's

I am using BackupPC to backup some workstations at the office. One workstations in particular has a sizable amount of data when compared to the rest, however, it's not that large in general (talking ...
0
votes
0answers
749 views

Unexpected EOF write error

We have a Sun Solaris 10 server that is failing to backup using tar to write to tape. tar cEf /dev/rmt/0cn . The complete error is tar: write error: unexpected EOF tar error code 2 The ...
4
votes
1answer
300 views

Should I exclude all 'dev/' or only 'dev/pts/' during full server tar backup?

I'm curious why in all backup tutorials I found tar command excludes among others /dev/pts and not all of /dev/ Why would I want to backup anything under dev?
2
votes
2answers
499 views

Shell command to filter out non-existing files in a pipe

I'm looking for a nice way to generate a backup tar.gz of what is going to be overridden by the extraction of another tar.gz. tar -ztf patch.tar.gz | grep -v "/$" | tar -T- -zcvf backup.tar.gz This ...
-2
votes
2answers
113 views

Deleting file in tar mounted with archivemount?

archivemount allows rw-mounting tar archives. What happens when I delete a file? Is it actually removed from the tar archive? Is a delete flag set? If the file is actually removed, then I assume the ...
1
vote
2answers
350 views

scp with tar pipe and continue proceeding if shell is closed

I am trying to send my files to another server with this command: tar zcvf - /var/www/html | ssh root@x.x.x.x "cat > /backup.tar.gz" And I want to send it to background with this commands ...
0
votes
1answer
316 views

Piping stream into tar on FreeBSD

I am trying to pipe a tar/gzip archive into tar to decompress it. The script I have is part of a self extracting installer, where my archive is appended to the script. This works fine on linux, and ...
1
vote
4answers
2k views

How to restore a backup from a tgz file in linux

How can i restore from a backup.tgz file generated from another linux server on my own server? I tried the command the following command: tar xvpfz backup.tgz -C / The above command worked, but it ...
0
votes
1answer
999 views

Unable to Unzip a tar.gz.bz2

We run daily backups of our MySQL server. Using the following script: [ ! -d "${DEST}" ] && mkdir -p "${DEST}" FILE=${DEST}/mysql-live.${NOW}-$(date +"%T").tar.gz.bz2 # get around error ...
-2
votes
1answer
627 views

Resume a tar command that was stopped

I am trying to tar a huge directory (with about 600GB) and sometimes my SSH conection drops and I need to execute the tar code again and my linux overwites the previous file beginning all the tar ...
0
votes
1answer
519 views

dd unable to write to tape drive

I'm trying to dump our online backups to tape; for obvious reasons I want to encrypt the data on the tapes, so to write to the tape I need to tar everything up, pipe that to openssl to encrypt it, ...
0
votes
1answer
295 views

Faster picking of files from a tar archive

We've got a collection of servers that we're backing up using Duplicity. We're trying to build some functionality for our staff so that they can select a file and view the available versions for ...
0
votes
1answer
53 views

Tar Server correctly for migration without messing up network configurations

I have a vps server that I would like to backup using tar. I currently use this command to do so, and it works very well for me right now. tar cvpjf backup.tar.bz2 --exclude=/proc ...
1
vote
1answer
60 views

How can I backup large amount of small files?

A Windows filesystem is mounted through samba and I am trying to compress a large amount of small files: find /path/to/files/ -newermt "2012-01-01 00:00:00" -path '*/*log.txt' -exec tar cvfz ...
0
votes
2answers
167 views

Why does system lag or stall after successful completion of tar backup command?

I have a script that runs backup of system files via tar as a cronjob for my server. Every time the script is being fired off, it completed the task as successful. All backups were tested and appeared ...
1
vote
0answers
629 views

Backup archive format for delta syncing to Dropbox?

On an Amazon EC2 server with Linux AMI, I currently have a daily backup cron job be run: TMP_BACKUP_FILE="/tmp/backup.tar" BACKUP_FILE="/home/ec2-user/Dropbox/Backup/backup.tar" rm -f ...