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

2
votes
3answers
402 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 ...
1
vote
2answers
32 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 ...
0
votes
2answers
33 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 ...
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 ...
1
vote
1answer
250 views

update tar archive in the relative directory

when I want to create a tar archive in a relative path, I can do this: tar cf archiveName.tar -C relative/path someDirectory but when I want to update the archive, this tar uf archiveName.tar -C ...
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
86 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
103 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
1answer
321 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 ...
0
votes
1answer
299 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
998 views

Copy directory structure from Solaris preserving all the permissions and links

I am looking to copy a directory structure with Files, I am not looking for content a 0 byte file will do. I just need to copy the directory tree with 0 byte files and links preserving the properties ...
0
votes
1answer
63 views

Installing multiple mysql as rpm vs tarball

Which is the suitable way to install multiple mysql servers without affecting the current installation in fedora( rpm or tarball)?
0
votes
1answer
584 views

Backing up file moves with rsync + tar

I have a mirroring system in place with rsync and it works well. However, moving a file causes it to be transferred again in its entirety. Given what I know about the rsync algorithm's rolling ...
0
votes
1answer
212 views

Backup to Tape using tar: How to add file details (time, date, size) to a TAR log?

What is the best way to make my tar log more informative? Cat'ing the log shows what was backed up, but tells nothing about the files last update or size. Eg: tar cvf /dev/st0 foo* > backup.log ...
2
votes
0answers
301 views

Umlaut encoding: tar on Mac Lion

I have a tar archive created on an old Unixware machine using ISO8859-1 encoding. When I try to extract it under Macosx Lion, I experience a bit of weirdness with German umlauts. For instance: I open ...
1
vote
0answers
25 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, ...
1
vote
0answers
38 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 ...
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 ...
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 * ...
0
votes
0answers
31 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
27 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
47 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
0answers
79 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: ...
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
0answers
753 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 ...