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
0 answers

Error while trying to backup site files

# tar -czf /backup/backup.tar.gz /var/www/html tar: Removing leading `/' from member names tar: /var/www/html/wp-content/uploads/2020/02: file changed as we read it # ls -la total 17160456 drwxr-xr-x 3 root root 58 Feb 26 07:53…
Jack Duldi
  • 19
  • 9
-1
votes
1 answer

How to recover a TAR file from a partially overwritten XFS disk?

This is the scenario. The environment is Linux (Arch Linux actually). An uncompressed 1,3TB tar file has been written on a freshely XFS-formatted 2TB disk as a backup. Later on, a 586MB UEFI boot image has been written (by mistake) to the very same…
EnzoR
  • 322
  • 3
  • 10
-1
votes
1 answer

tar -z is very slow

I know this question has been asked before and I saw the recommendations on using pigz. Good recommendations, but I wanted to see if I really have a "problem". I have an esxi host. It's the free version so a lot of the enterprise tools don't work.…
sspeed
  • 3
  • 3
-1
votes
1 answer

How to extract a tar file compressed multiple times over

Due to some runaway poor scripting some files meant to be archived were compressed five or six times over. So there are files like this: a_log_file_0.log.1.tar.gz.tar.gz.tar.gz.tar.gz.tar.gz Please how can I fix problematic files like this?
Unpossible
  • 249
  • 1
  • 7
  • 20
-1
votes
1 answer

Use SSH to copy remote files to local NAS drive

I'm looking to create a script that logs into a machine and pulls back files to a NAS server. The files will be put into a compressed file as it downloads. Because the script will be looking to download files with varying owners and permissions, it…
jamboNum5
  • 361
  • 1
  • 2
  • 10
-1
votes
2 answers

Find all files which contain pattern in directory of tar files

I have all tar files in a directory. I want to find some files in tar files without extract all tar files. I know how to work with one tar file: tar tvf abc.tar | grep xyz I want to find in all tar files but I don't know how to.
Minh Ha Pham
  • 121
  • 6
-1
votes
2 answers

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 operation to be painfully slow, because the whole…
feklee
  • 505
  • 5
  • 19
-1
votes
1 answer

How to tar into a directory.

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 would like to run a tar -jcvf files.tbz2 ./* in a…
Lethjakman
  • 101
  • 2
-1
votes
3 answers

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 using wget option. Total size of the gallery is…
palPalani
  • 23
  • 2
-1
votes
5 answers

Transer a large number of file between two servers

Possible Duplicate: Quickest way to transfer 55GB of images to new server I am migrating from one server to another. I want to transfer the thousands of file from one server to the other. What is the best approach here? Both system is running…
Anders
  • 207
  • 1
  • 2
  • 7
-1
votes
4 answers

extracting files from tar

tar -xvf company_raw_2012-03-16.tgz --directory=/root/test --strip-components=4 I am using the following tar option to remove the leading directories and it is working as expected. --strip-components NUMBER strip NUMBER of leading components from…
shantanuo
  • 3,579
  • 8
  • 49
  • 66
-2
votes
2 answers

Cron-Job / Backup entire Ubuntu System with tar, atfer this rsync this archive

I want to create the cron-job for the following steps: Backup my entire ubuntu server with the following command: tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --exclude=/proc --exclude=/tmp --exclude=/mnt --exclude=/dev --exclude=/sys…
nils50122
  • 21
  • 1
  • 7
-2
votes
2 answers

Ubuntu - utilities ask about each file?

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 with tar add file 1234.log to folder.tar ? y/n If…
rreeves
  • 171
  • 2
  • 11
-2
votes
1 answer

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 the files. I want the files to be "parent"). 2)…
MultiformeIngegno
  • 1,687
  • 9
  • 26
  • 31
-3
votes
3 answers

How to tar 30 Gigas of data on a 50 Giga server?

I need to send the content of a folder (full of JPEG pics) to a client. My server has 50 gigas and folder has 30 gigas. (Zipping JPEG is useless since JPEG is already compressed) Any idea/strategy on how I can achieve such a thing ? Regards
yarek
  • 827
  • 5
  • 13
  • 22
1 2 3
23
24