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
1answer
21 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
21 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
0answers
30 views

Tar backup to webdav server: how to split the output file using stdin?

I need some advice on storing a tar file to a webdav server. I'd like to make automated backups of my VPS, however the available space is limited so I can't store the backup before uploading it to the ...
0
votes
0answers
21 views

tar: : Unable to continue traversing directory tree: Bad file descriptor

I get the above error when running tar -cjf from cron. However, if running the same command from the shell, as the same user, there are no errors. The system is FreeBSD 9.2, so this is BSD tar. Any ...
0
votes
1answer
25 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
34 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
0answers
18 views

SolusVM Migrate from node to node manually

What is the correct way to manually migrate a VPS from one Node to another Node with SolusVM as the backend panel to both? Both nodes are different, one is owned by the old company the new node is ...
0
votes
2answers
41 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 ...
0
votes
0answers
67 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 ...
2
votes
1answer
77 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
41 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
239 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 ...
0
votes
2answers
34 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
97 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
172 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
26 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
365 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
52 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 ...
2
votes
3answers
153 views

bash gunzip | untar multiple files in separated folders

I have a list of .tar.gz files with the same inner folder structure and I'd like to batch gunzip | untar a single file from them in separated folders. logs_2013-08-01.tar.gz logs_2013-08-02.tar.gz ...
0
votes
1answer
112 views

untar all files in specific directory but not the directory

I think this may be a simple question but cannot find the answer. I am trying to extract some files from a tar file. These files are in a directory within the tar file. I tried the following however ...
3
votes
4answers
312 views

taring vmdk files does not preserve thinness

we have NFS storage, where we store our backups.. we manipulate with them from linux machine where the nfs is also mounted.. So, for example thin provisioned thin.vmdk disk is on linux seen as ...
-2
votes
2answers
28 views

Ubuntu - utilities ask about each file? [closed]

I'm using Ubuntu 12.10 after doing something like sudo rm *.log it asks me about each file. do you want to delete 1234.log y/n ? do you want to delete 12345.log y/n ? It is having this same behavior ...
8
votes
2answers
555 views

Transfer a 30GB tar file from one remote server to another - restrained by disk space

I have a 38GB "Moodle" tar file that I need to transfer from the old server (Shared hosting), which we can call "Server A" to the new server (Dedicated virtual), or "Server B". I'm with Mediatemple if ...
0
votes
2answers
289 views

Getting errors while making backup of whole centos with tar

I am trying this command tar cvpzf /TEMP_BACKUPS/backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/tmp --exclude=/TEMP_BACKUPS --exclude=/mnt --exclude=/sys / > /TEMP_BACKUPS/mylog.txt ...
0
votes
2answers
274 views

UNIX ctime : how to keep this precious information in backups (tar)?

I have three questions related to the "ctime" information of a file. They are in bold (if you don't have time you can jump directly to them). A website on my dedicated server has been hacked. Lots ...
-1
votes
1answer
152 views

tar operation taking extremely long time

Wonder if anyone can help with this issue, we running RHL 5 on HP Proliant DL580 G7 it has 2xCPU @1.87GHz 6XCORES each & 64GB RAM. lately backing up a directory (62GB) with tar (tar -czvf ...
3
votes
1answer
133 views

Can I get tar to not use the filesystem cache when reading files?

We have a cronned job on a production web server that requires tarring up files from across the filesystem. It runs for about 105 minutes, and during that time, Apache starts swapping because all ...
-1
votes
1answer
52 views

How to tar into a directory. [duplicate]

I would like to be able to tar all of my files so that when the are extracted they're in a sub directory I have specified. For example if I have File1 File2 and File3 inside of my current directory I ...
0
votes
1answer
644 views

Creating tar from the files within the specific date range

I'm having trouble with getting my data from my shared hosting. I've approximately 20 GB folder that contains about 40.000 images. I tried archive that folder by splitting archive files: tar -cvpj ...
1
vote
2answers
28 views

TAR from dir into 'tar root'

I was looking for an answer, I thought I found it, but it doesn't work correctly :-S Question: I want to pack: /foo/bar/dir/* but when I unpack the tar I would like to have /dir/* So i thought: 1) ...
0
votes
1answer
71 views

find and delete files of a certain type inside a tar.gz file

Is there a way to not only find but also delete any .gz files inside a .tar.gz file? I found this link but I wouldn't know how to modify it to make it able to delete found files.
2
votes
3answers
2k views

Linux backup using tar

Im new to linux backup. Im thinking of full system backup of my linux server using tar. I came up with the following code: tar -zcvpf /archive/fullbackup.tar.gz --exclude=/archive --exclude=/mnt ...
2
votes
2answers
265 views

Deduplication of tar archives

Now I'm trying to configure ZFS with deduplication on my linux backup server and have a question. For example I have 1k files in backup1.tar and 1k same files and 1 new in backup2.tar. This files ...
0
votes
1answer
86 views

how to tar or zip two sibling folders and avoid an extra top level folder when extracting

I have a need to create a tar of two sibling folders and send it to a client for extraction on their Mac OS desktop by double-clicking it. yes, that's a requirement of theirs. so I go: cd ~/Desktop ...
32
votes
1answer
2k views

Why does `tar -xvfz` fail, but `tar xvfz` work?

tar -xvfz foo.tar.gz returns an error tar: z: Cannot open: No such file or directory This is completely understandable - the f switch expects a filename, and so needs to be last. However, omitting ...
-3
votes
3answers
1k views

How to find files of certain extension and tar each of them in to another location

I have script for finding files of certain type and compress them to a single tar archive and put in to other place. But now, there is a change in requirement, that I need to find files of certain ...
4
votes
1answer
263 views

Ran out of disk space, how to tar without creating copy

I am at 98% of an 8GB SSD, and I have a 3 GB mysql data that I need to gzip and or tar and then download it, so then I can delete it. How can I tar or gzip the sql (or the mysql tables) so that that ...
0
votes
1answer
228 views

SSH: connect with public key avoiding passphrase prompt

root@myhost:/# ssh -i /opt/id_rsa.pub azureuser@myhost2.cloudapp.net Enter passphrase for key '/opt/id_rsa.pub': azureuser@myhost2.cloudapp.net's password: I have created key pair without ...
1
vote
3answers
151 views

Strategy for backing up a very large website (~40GB)

I have a website which works with lots and lots of text files - now they take up about 40 GB of data and increasing over time. I need to make a full daily backup. My current strategy is to make a ...
1
vote
1answer
90 views

Linux: Gnu-Tar Excludes

I'm trying to perform a full backup of a Linux server using GNU-Tar. The file system looks like this: ├── backup ├── data │   ├── d1 │   ├── d2 │   └── tmp │   ├── tt1 │   ├── tt2 │   └── ...
0
votes
0answers
180 views

FTP performance 15x slower for tar files of binary vs. text?

We're running some 1GB FTP file transfer tests in advance of a larger 40GB transfer and seeing 15x slower performance (450kB/s vs. 7Mb/s) when the 1GB test tar file is composed of small (<100k) ...
-1
votes
3answers
81 views

How to tar folders with specific letter

I have a long list of folders. i want tar only folder which starts with "a". How can i do that? Actually, I am having photo gallery website, which has 1000s of folders. I wish to move another server ...
1
vote
4answers
331 views

tar leading period slash

tar czf dist.tgz --exclude=".gitignore" . This creates files in tar with leading "./" which later turns to problem when server needs to extract parts of tar. Could someone tell me how to pack it ...
3
votes
1answer
124 views

FreeBSD restore of /rescue

I'm running a restore from a previous backup of my FreeBSD system, and run into trouble when restoring / (excluding mount-points). The problem is that /rescue fills the / partition (to the extent that ...
1
vote
0answers
39 views

Accident from tar -cvf, recover original file? [duplicate]

Possible Duplicate: Is it possible to recover filed removed by rm in linux? I'm using a RHEL6 server RAID10 with a ext4 fs, with a volumeGroup (lvm2) VolGroup00 created on a PV /dev/sda5 ...
2
votes
1answer
279 views

Gzip command to produce exact same output than tar -cvzf?

I did thought the following commands where equivalent, but they produce different checksums: tar -cvzf ... and tar -cvf ...; gzip ... does not produce the same output. sha1sumdiffers. What would be ...
2
votes
1answer
40 views

create log for an encrypted tar

I want to create an encrypted tar but also I want to have a log of what tar has compressed, I'm using the following command: tar -cvvf - --files-from=/root/backup.cfg | openssl des3 -salt -k ...
0
votes
2answers
88 views

moving files and directories between two machine, via a third, preserving permissions and usernames

The situation is as follows: Machine A has a file repository accessible via rsync Machine B needs the above mentioned files with all permissions and ownerships intact (including groups etc) ...
1
vote
3answers
75 views

MySQL Upgrade RPM

I have a centos5.5 system and have MySQL 5.0.27 install. Now I want to upgrade this to MySQL 5.5.28(Latest). I have two questions, What is the difference between RPM(Redhat) which is recommended and ...
1
vote
1answer
105 views

How do I untar multiple archives from tape?

I have a tape with multiple tar files on it. I do not know how many (it was created by a third party and sent to me with minimal information). How do I untar all the files without having to repeat the ...