Questions tagged [tar]

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.

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. The name “tar” originally came from the phrase “Tape ARchive”, but archives need not (and these days, typically do not) reside on tapes.

347 questions
0
votes
1 answer

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

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, think incremental. Using simple linux commands…
Arlukin
  • 1,203
  • 6
  • 18
  • 27
0
votes
1 answer

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 tar -cvf ~/Desktop/files.tar folder1…
EarlGrey
  • 103
  • 2
0
votes
1 answer

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 passphrase, is it possible to get rid of passphrase prompt…
Somebody
  • 364
  • 1
  • 6
  • 17
0
votes
3 answers

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 Generic binary tarball. Do they have performance…
0
votes
2 answers

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 file.tar.gz It always give me error: "not in gzip…
Petuga
  • 1
  • 1
  • 2
0
votes
1 answer

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 of the file like- Permission, Owner, Group,…
Balualways
  • 242
  • 2
  • 4
  • 15
0
votes
1 answer

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)?
Haseena
  • 151
  • 1
  • 1
  • 5
0
votes
1 answer

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 the end side? Will it have only the files as of the start…
pl1nk
  • 461
  • 5
  • 22
0
votes
1 answer

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 checksum, wouldn't it be possible to: tar all the…
mappu
  • 1
  • 4
0
votes
1 answer

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
Spacedust
  • 568
  • 5
  • 13
  • 28
0
votes
2 answers

copy files with folders

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 exist. Update: I can do it in 2 steps as shown…
shantanuo
  • 3,579
  • 8
  • 49
  • 66
0
votes
2 answers

How do I fix a broken tar file?

I have a 46GB tar file containing an .img of an old partition. Unfortunately, it produces a 0-byte file when un-tar'ed. The tar file was produced on linux, I'm on windows now. I have tried WinRAR, and tar (from unixutils). Note: It was actually…
Blorgbeard
  • 191
  • 4
  • 7
0
votes
1 answer

tar from tape never finds directory I want

I'm a newbie when it comes to working with tape backups. I'm trying to extract a directory from a tape archive, and not getting much success. The directory on the tape is of the format /foo1/foo2/foo3/foo4/foo5/foo6 with the directory I want being…
ACKumen
  • 61
  • 2
0
votes
1 answer

Make rsync working with compressed target or tar creating no increment files

I need to make a backup on my external hard drive. I looked both at rsync and incremental tar. The problem is that I want my backup to be compressed. With rsync I can only compress the data transfer, but not the result. With tar the result is indeed…
damluar
  • 101
  • 5
0
votes
2 answers

How can I make monthly backups (with dated file names) using Cron on Debian?

I'm having trouble adding the date to the backup file's filename. Here's the Cron command (for testing): */2 * * * tar -zcf /var/backups/www-(back tick)date +%Y%m%d(back tick).tgz /var/www/ It should run every 2 minutes and create a backup file…
Linksku
  • 1
  • 1