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
10 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
27 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
17 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
51 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
56 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
16 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
355 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
41 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
38 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
51 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
94 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
180 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
127 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
51 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
79 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
289 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
44 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
96 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
86 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
180 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
149 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
98 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
222 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
347 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
958 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
641 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
297 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
384 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
95 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
318 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
264 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
1k 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
929 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
528 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
454 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
263 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
52 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
59 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
150 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
611 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 ...
3
votes
1answer
1k views

Filename encoding switched to UTF-8 by tar when untaring to Windows share

We have different Magento installations (webshop) that allows images to be added to a product freely. When an image is added to a product, the file is named in a specific way that sometimes ...
2
votes
1answer
825 views

Exclude mounted folders from tar archive

we want to backup our server and this seems to be pretty simple thing to do except one. Currently we use something like this: tar cvpjf backup.tar.bz2 --exclude=/proc --exclude=/lost+found ...
0
votes
1answer
9k views

Force tar to ignore/skip errors while compressing files?

Let's say I do this tar cfzp home.tar.gz /home (takes a while) and a file changes during compression and tar fails, I get "file changed as we read it" and tar stops. I assume home.tar.gz is now ...
1
vote
2answers
140 views

How to maintain up-to-date snapshot tar archive efficiently?

I have a large directory of files and I would like to maintain a single compressed tar archive that I can server over http containing all the files which is brought up to date once each day. Many of ...
2
votes
3answers
369 views

tar incremental backup is backing everything up, every time when used on the Dropbox directory

I made an incremental backup about 10 months ago (on Jan 27, 2013), creating a .snar metadata file. Now, when I try to make an incremental backup using tar --create --file=dropbox_incremental_1.tar ...
0
votes
1answer
697 views

How do I backup 50GB+ of files on a linux box to a remote sftp account [closed]

How do I backup 50GB+ of files on a linux box to a remote sftp account. My requirements Store several versions of the backups. Encrypted before sent to remote server. Disk and bandwidth efficent, ...
1
vote
2answers
31 views

Moving large number of files since date

I've recently moved a large number of files from one server to another with tar -c files_in_dir | ssh user@111.222.33.444 'tar -xvf - -C /new/server/files' Which worked very well. However, I'd like ...
1
vote
2answers
2k views

Is it possible to exclude empty directories when creating a tar?

I have a backup command which looks like this: tar cvpzf /backup/incremental-$now.tar.gz --after-date='1 day ago' -C / etc/ home/ root/ --exclude-from=/root/exclusion_list.txt ...
2
votes
2answers
88 views

Segmenting mysql backups using tar

In addition to using mysqldump, I've been backing up my mysql server by tarring up /var/lib/mysql for redundancy and convenience. This directory includes ibdata, ib_logfile0, and ib_logfile1 as well ...