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.
3
votes
1answer
68 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
45 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
100 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
21 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
45 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.
0
votes
3answers
257 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
151 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
50 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
...
31
votes
1answer
920 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 ...
0
votes
1answer
57 views
Using SFTP client to TAR files instead of terminal [closed]
Whenever I SSH into terminal, I always seem to screw something up. It would be a lot simpler if I was able to zip/tar files using an FTP application - does this exist?
-3
votes
2answers
202 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
194 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
76 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
111 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
52 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
97 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) ...
0
votes
3answers
56 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
3answers
82 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 ...
2
votes
1answer
82 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 ...
0
votes
0answers
32 views
tar files sorted by size to a tape
I'm configuring a tape backup of some directories and i'm wondering if it could be a good idea to store them sorted by size.
My idea is if I have to restore some file and the file are save ...
0
votes
0answers
37 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
64 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
32 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
65 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
59 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 ...
0
votes
0answers
66 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 ...
2
votes
4answers
781 views
Does tar preserve permissions if user IDs change?
I need to backup some data with the "p" option on tar command. The problem is the place I'm going to restore this data will have all the same users, but those users may have different IDs. Does that ...
1
vote
1answer
26 views
Is there a way for tar to check for new files not in an archive?
Is there a way to for the tar command to check for new files that are not already in the archive, or those that have been deleted (for good measure)?
1
vote
1answer
61 views
tar + tar not open all files
When I want to view the following tar file , then tar show the following three files
from /var/tmp
tar tvf fix.tar
install.sh
/usr/cti/apps/swp/dir/script1.sh
...
0
votes
2answers
336 views
Not possible to extract tar.gz archive in Centos
I have just uploaded tar.gz archive to my Centos server from my home Windows 7 computer. Before that, it was extracted from .zip archive.
When I try to extract it:
tar -xvf file.tar.gz
gunzip ...
0
votes
1answer
57 views
Issues while untaring in Linux- tarball created from Solaris
I am getting an error- "Unknown file type 'A', extracted as normal file"
while un-taring a set of files which has acl permissions set.
I had created the tar file in solaris as tar -cpfv ...
4
votes
1answer
69 views
Is it really impossible to prepend data to a tape?
I would like to keep a log of files that I am writing to tape using dd or tar for each file. Then at the end of the run, prepend that log to the beginning of the tape using dd. If it works, I can see ...
0
votes
1answer
224 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
32 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
158 views
resumable tar over ssh
I'd like to use tar cf - | ssh user@hostname tar xf - to copy a very large set of files. The only problem is that it will be over a very flakey VPN link. Is it possible to somehow set up a resumable ...
0
votes
4answers
85 views
Tar dereference only 1 level
I use the following pseudo-script to create a TAR of my installed software
mkdir tmp
ln -s /path/to/app1/bin tmp/app1
ln -s /and/path/going/to/the-app-2 tmp/app2
tar -c --dereference ...
0
votes
1answer
40 views
What would be the outcome of tar and untar a constantly changing folder via ssh
I have used this command on a big-sized (TB),constant changing directory with sub-folders and files.
$ tar c dir/* |gzip - | ssh user@host 'cd /dir/ && tar xz'
What would be the outcome at ...
2
votes
1answer
1k views
Absolute recursive tar without parent directories?
I have a directory structure that looks something like this:
/var/www/website/index.php
/var/www/website/home.php
/var/www/website/whatever.text
/var/www/website/.htaccess
/var/www/website/images/
...
4
votes
3answers
1k views
Determine if file is in the process of being written upon?
I need to deploy an automated process (via 1 min cron script) that looks for tar files in a specific directory. If a tar file is found, it is untarred to the appropriate location and then the tar file ...
0
votes
1answer
102 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 ...
3
votes
4answers
552 views
Cannot set target directory when extracting an archive using tar
I'm trying to extract a tar archive to a specific directory. I've tried using -C flag but it doesn't work as expected. Here is the commandline I'm using
tar xvf myarchive.tar -C mydirectory/
This ...
1
vote
3answers
256 views
tar over ssh to IPv6 host
I want to tar to a remote host using the remote host's IPv6 address. I can ssh and scp to the host but GNU tar does not accept the IPv6 address.
I tried:
tar -cjvf ...
-2
votes
1answer
40 views
Changing tar parameters
I'd like to change the command I'm actualy using to put files in a tar archive in order to achieve this:
1) Remove directories tree from the archive (actually the .tar.gz file mantains the tree of ...
1
vote
2answers
102 views
Run command to untar file in timestamped folder?
I have a .tar file that is transferred to our server every night by one of our client management systems. The file is a compressed .sql file which I need to uncompress and dump into our database.
The ...
0
votes
1answer
103 views
How to unpack specific directory from /home backup packed with pigz+tar+gzip
Normally I'm extracting my copies with:
pigz -dc backup2_week1_system.tar.gz | tar xzvf -
Now I want to unpack specific directory from /home/user for example admin
2
votes
3answers
292 views
tar gzip slowing down server
I have a backup script that:
compress some files
generate md5
copy the compressed file to another server.
the other server finishes comparing MD5 (to find copy errors).
Here it's the core script:
...
-1
votes
3answers
301 views
Combine two or more compressed files
I have 2 gz files those I need to merge into one -- that is to say I want to combine two .gz files into one such that when I extract the combined file I get a single file containing the concatenation ...
-1
votes
2answers
157 views
copy files with folders [closed]
The following scp is working as expected.
scp /home/admin/* root@ec2-50-112-212-73:/
But I need a command that will create the required folder structure on destination server if it does not already ...
4
votes
4answers
234 views
Ultrium 3 tape drive shoe-shining, 3Mb/s: and it's not the cable
I have a HP 960 Ultrium 3 tape drive. Since I got it, (second hand, £90) I've been experiencing shoe-shining. Writing with tar in Linux, I average about 3Mb/s write speed. I've tried replacing both ...
1
vote
1answer
481 views
linux/solaris when to use tar or gtar
is it possible to know when need to use tar or gtar according to tar file
for example
I have some tar file as
sometarfile.tar
how to know if need to use tar or gtar command ?
is it possible ...
