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
3 views

How do I start an application after I ran the installation script? [migrated]

I've been looking around the internet and I can't find a direct answer to this. I've install Komodo IDE by downloading the .tar.gz file (from http://komodoide.com/download/) and using the tar command ...
3
votes
1answer
35 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 ...
0
votes
1answer
70 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
148 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
157 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
272 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
65 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
37 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
111 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
82 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
154 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
290 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
144 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
0answers
61 views

openvz tar implausibly old time stamp

I'm trying to restore a 26 G tar dumpo of an openvz container. The problem is, that when untarring this error comes up: implausibly old time stamp 1969-12-31 18:00:00 and the it doesn't finish the ...
0
votes
1answer
134 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
74 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
57 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
34 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
45 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
77 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
85 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
478 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
520 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
161 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
2k 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
59 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
175 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
410 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
28 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
774 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
69 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
655 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
370 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
607 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
36 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 ...
9
votes
2answers
708 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
1k 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
383 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
380 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
207 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
61 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
1k 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
30 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
201 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
5k 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
390 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
128 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 ...
33
votes
1answer
3k 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
2k 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
305 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 ...