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

Differential backup with TAR relative to specific weekday

I want to have the following backup cycle on Debian Lenny: Monday : Full backup Tuesday : Differential backup relative to Monday Wednesday: Differential backup relative to Monday Thursday : Differential backup relative to Monday Friday :…
Cudos
  • 539
  • 2
  • 7
  • 18
0
votes
1 answer

TAR and excluding directory files but kee directory

Noob alert: Can I exclude files in the directory "imagecache" but still make the directory a part of the TAR archive?
Cudos
  • 539
  • 2
  • 7
  • 18
0
votes
1 answer

Problem restoring from tar backup: why are there /dev/disk/by-id/ symlinks and how can I avoid them?

I'm trying to make a bare-bone backup system with the most basic tools available on openSUSE 11.3 (in this case: bash, fdisk, tar & grub legacy) Here's the workflow for my scripts: backup.sh: (Run from external system, e.g. LiveCD) make an fdisk…
SK.
  • 101
  • 1
0
votes
1 answer

need help on extracting a file when checksum matches

I need a help on untaring a file when checksum matches. Here is the scenario. i have a tar file and its check sum is dfsafdafsafasfsaf232, stored in a checksum file and need a script to match this checksum file and extract to specific folder when…
Bharathvn
  • 15
  • 3
0
votes
5 answers

Archive (tar) frontend over SSH

I'm looking for an alternative way to the bare tar command to tar/list/untar files on a Linux host over SSH, for using on some shared hosting accounts. Naturally no one has X-Windows or Midnight Commander available. It could be; a server side cli…
DarkWingDuck
  • 145
  • 2
  • 9
0
votes
1 answer

not letting me TAR 155gb images directory, keeps giving me error

[root@centosvm01 /]# tar -cvfz --exclude=/storage/thumbs/ /storage/storage.tar /storage/ tar: z: Wrote only 6144 of 10240 bytes tar: Error is not recoverable: exiting now it's 155GB of just images. I know there is 700GB free on the drive…
Andrew Fashion
  • 1,655
  • 7
  • 22
  • 26
0
votes
12 answers

How do you backup your site?

How do you backup your site? I am especially interested when you have a large site (20GB+) with thousands of files? Is there anything clever than the usual tar -zcvf backup2010.tar.gz ./public_html/ After answering the above, how do you maintain a…
Abs
  • 1,559
  • 5
  • 19
  • 32
0
votes
2 answers

Mail backup error (tar Cannot stat: No such file or directory)

I have got this error in during my mail server backup: 2010-09-16 06:24:20 ERROR backup of /var/mail/vhosts failed: tar: Removing leading `/' from member names tar:…
VVP
  • 51
  • 1
  • 2
  • 6
0
votes
1 answer

Clarify tar message

I'm doing some tape backup with tar. The backup is running while all services are up. I know that is a bad thing, but i cannot stop them. So, sometimes the tar prints this message: tar: ./data/file.txt: file changed as we read it Does this mean…
PeterMmm
  • 895
  • 16
  • 28
0
votes
1 answer

Help on writing Linux script to backup and ftp files to another server

I am using MySQL as the database system for my application on a Linux system. Every week I update the system and take backups (mysqldump) of the databases changed (2 databases). I then .tar.gz them and ftp the resulting file to a remote Windows…
TMM
0
votes
4 answers

How to tar.gz *.php, *.txt, *.inc, *.js, *.css, *.php3 files?

I want to backup my server, but not bother with images /videos etc. how can i tar.gz all those types of files i want (basically text files)?
tarnoob
0
votes
2 answers

What are the command-line options for un-tarring a tar.gz file to a specific directory?

This is one of those things I don't quite do often enough to memorize. I thought it would be nice to have the answer here so I (and maybe others with as poor a memory as me) can star it. What command-line options to I use to un-tar a tar.gz file…
Daryl Spitzer
  • 2,996
  • 9
  • 33
  • 40
0
votes
1 answer

Untar multiple files in different directories

am trying to perform an update on multiple site that use an open source CMS but untaring a patch file in each sites httpdocs directory. My plan was to perform a find for the patch file then untar using the following command: find . -name…
wildeep
  • 3
  • 2
0
votes
2 answers

TAR command to extract a single file from a .tar.gz

Does anyone have a command syntax for extracting 1 file from a .tar.gz that also allows me to place the extracted file in a certain directory? I have Googled this and get too many variations with a lot of forum threads stating the syntax doesn't…
H. Ferrence
  • 533
  • 3
  • 10
  • 18
0
votes
0 answers

Saving contents of /proc/net

I'm trying to archive files from /proc/net when a process crashes. This is to aid in debugging, to get understanding about the machine status when crash happened. The contents are not regular files, but interface to internal data structures in the…
m.divya.mohan
  • 333
  • 1
  • 6