General :: Difference In Size Of The Tarred Files After Archiving Using Tar Command?
May 17, 2011
i am using red hat linux 2.4 . I have 3 folders dir1 dir2 dir3 I have tarred them like this.
1.tar cvfz tarball_1.tgz dir1 dir2 dir3
2.tar cvfz tarball_2.tgz dir1 dir2 dir3 2>& /dev/null (So that it does not display any error message or operation details to the user)
[usr@machine]$ ls -lrt
-rw-r--r-- 1 usr grp 199843988 May 17 13:39 tarball_1.tgz
-rw-r--r-- 1 usr grp 199837488 May 17 13:53 tarball_2.tgz
But can any one explain the size difference as seen in list output...
View 4 Replies
ADVERTISEMENT
Feb 24, 2010
I am a little confused in distinguishing Backup, compressing and Archiving data. Help me to figure out how these can be useful.
View 2 Replies
View Related
Mar 29, 2011
I need to tar this logs, but i dont how to make it simplier to me. Everyday there are created this five logs. I need to make five tar files from every day from this files at the end of the month
For example
Till now i have tar it manualy (copied every file)
View 2 Replies
View Related
Jun 4, 2011
I have a script which periodically backs up a directory using the command "tar -czvf [name] [directory]" but my problem is that the script has recently been putting a lot of stress on the server (Minecraft SMP) and tends to lag players as it backs up, which recently has been taking nearly 5 minutes.So I need to know if there's a way to control the GZip compression rate at the same time that it archives and backs up the files?I understand that I can first tar the files and then GZip them separately with a different compression rate afterwards, but this would not work because it names the files with the current server time, which sometimes changes in between commands.
View 1 Replies
View Related
Feb 28, 2011
I need a script that accepts two parameters inputDir and outputDir.
This script should copy all the log files in the inputDir to a folder like <BackupLogs-currentDaysDate>
The new folder with the log files should be tarred and gzipped <BackupLogs-currentDaysDate>.tgz
And this new <BackupLogs-currentDaysDate>.tgz file should be copied to the outputDir.
Also all the log files in the inputDir should be deleted.
View 16 Replies
View Related
Jun 22, 2011
I sometimes get confused by the varying command line options I need to run common Unix archiving and compression software (e.g. gzip, bzip2, zip, tar).
Is there a program out there that can just Do What I Mean for common cases? For example:
View 2 Replies
View Related
Jun 30, 2011
When I run df it shows the root device is full.
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.9G 9.4G 0 100% /
I looked at the inode usage and there is pretty much space available for root device
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 640K 103K 538K 16% /
But, when I run the du command, it shows I have used only 2G out of 9.9G.
ip-10-204-70-44:/$ du -xh --max-depth=1
14M ./etc
4.0K ./mnt[code]....
It just driving me crazy and interesting too. This is big problem for us since the root disk / is full and some of the function in our site is failing.
View 2 Replies
View Related
Mar 4, 2011
I'm trying to zip or rar >100000 files into a single file so that I can upload it to my server much faster than ftp downloaded it. Total they're all only 4gb, but because of the number of files Nautilus freezes just opening the folder they're in. They're all .jpgs and all in the same folder and I've tried a few commands but I keep getting error messages.
Anyone have a command that will archive all the files from a folder into a single zip (or rar, tar etc)? I can't just archive the folder because then I would have to move all the files out of that folder and just opening the folder to move them would crash it, and I don't have ssh into that server.
View 3 Replies
View Related
Nov 1, 2010
What is the difference between *.xml and *.xml in find command in Linux/macThe results of:find . -name *.xml and find . -name *.xml are different. But why?Also, is locate '*.xml' better than find? Which one is the most commonly used?
View 1 Replies
View Related
Jun 6, 2011
What is difference between lvreduce and lvresize command?
View 2 Replies
View Related
Dec 24, 2010
For searching a file or directory i normally use grep command. kindly can you guide me the difference between grep and find command. I have used both but that are the difference between them ? are the same or grep is new as comapird to find command.
View 2 Replies
View Related
Jun 14, 2010
I have written a set of aliases in a file.When i tried to dot it( "Prompt> . filename" ). It said " Permission denied. "But, when I sourced it ("Prompt> source filename"). It worked perfectly.Linux manual has one entry for both the commands. Then what am I missing ?
View 5 Replies
View Related
Mar 9, 2011
What is the difference between ext2online and resize2fs command?
View 3 Replies
View Related
Feb 18, 2010
so i have a few shell scripts that execute wonderfully when i type them at the command line but they fail when they are run from cron.
for example, if i run a script from command line that contains
Code:
shopt -s nullglob
to prevent problems with for f in *.mp4 type loops, it works fine from terminal command line but when called from cron, it gives an error->
Code:
/home/centralsqwall/Videos/videochecker.sh: 91: shopt: not found
a couple other random errors as well...
so there is some difference in the shell from cron and the terminal?
i'm running ubuntu 9.10, #!/bin/bash
what are the commands i should be using to echo my environment or simulate cron environment from the terminal?
View 3 Replies
View Related
Aug 11, 2011
I just wanted to know the difference between Using Sudo mechanism over using Power breaker utilities.
View 4 Replies
View Related
Aug 22, 2011
What is the difference between "bin" and "netinstall" ISO files for Linux?I need a full OS, not just a Live CD. On the mirrors there are two kind of files.Which one is the full OS?
View 1 Replies
View Related
Nov 7, 2009
I'm new to linux,so i'm confused with MOUNTING files. give differences and unique functions of the FSTAB, MTAB, /PROC/MTAB files.
View 2 Replies
View Related
Jul 14, 2010
I want the difference of two text files(a.txt & b.txt) into a third text file(c.txt). i.e. New or Differert rows of a.txt compared to b.txt
a.txt>
10128|10153|999999
10343|10153|000
10345|10153|3846
10351|10153|3846
b.txt>
10128|10153|999999
10343|10153|3853
10345|10153|3853
10349|10153|3853
c.txt should be like>
10343|10153|000
10351|10153|3846
I tried comm,but man says that the files have to be sorted in order to use comm. I dont want to sort the files.
View 3 Replies
View Related
Mar 31, 2010
I am not especially cli adept so could someone tell me the best way to use the diff command to get the difference between a string of text and the contents of a file instead of between the contents of two files?
View 3 Replies
View Related
Jan 22, 2011
When Installing Ubuntu what difference does the installation size make? Right now it's set at 17GB :/. The higher the install size better functionality or what?
View 2 Replies
View Related
Mar 18, 2010
I want to find the difference between two files in different servers , which have trust enabled to ssh without password.
Am using the following command , which shows no output. But i am able to see some difference there in the files manually.
Code:
serv1$diff .profile `ssh serv2 ls .profile`
View 1 Replies
View Related
Dec 14, 2010
I'm relatively new to Linux in general but have learned to do the basics with the CLI.
Well my main problem is writing my first "real" script in VIM. I just have no idea where to start. I was hoping you guys could point me in the right direction.
Well this is what the script needs to do.
"As the IT administrator for a large manufacturing company you have been tasked with producing a script for archiving the daily log files. Each week the daily log files are placed in a directory named weekXX, where XX is the number of the week. Each week directory should be archived and compressed and stored in a folder called log_directories. When the script has completed the task it should display on the monitor exactly what files and directories it has archived.
The script should be started by a user with the required week numbers added as arguments (e.g prog 13 14 15 should start the program and archive the daily log files in week13, week14 and week15).
A basic manual is required, showing how to start the program, the hardware and / or software requirements, a hard copy of the script and a brief description of the test strategy and test data."
View 14 Replies
View Related
Jun 20, 2011
I noticed something a little odd I'm hoping someone can enlighten me on. I noticed in a couple of cases that a package has the proper version, but differs in two regards.
1. The package ends up with a .el4 on the end of the version for Red Hat 4.
2. The actual MD5Sum of the files the package provides differ.
An example below:
Code:
[root@RH4ES32-MCE bin]# for i in `rpm -ql GConf2`;do md5sum $i;done;
md5sum: /etc/gconf/2: Is a directory
9f90335546f7c57ae6fb552cc2b919c5 /etc/gconf/2/path
md5sum: /etc/gconf/gconf.xml.defaults: Is a directory
[code].....
So my package changed slightly to now show .el4 versus just 2-2.8.1-1 I've indicated in the first output above that the first couple of lines differ. I stopped my comparison at that point as they truly are different.
View 8 Replies
View Related
Aug 3, 2010
What is the difference between kernel-source.x.x.x.x.rpm and kernel.x.x.x.src.rpm?
View 2 Replies
View Related
Jun 23, 2010
Which are the Open Source "file and email archiving" software for both Linux and Windows equivalent to Enterprise Vault Symantec?
View 2 Replies
View Related
Nov 18, 2010
I'm trying to do something like this:
Code:
#!/bin/bash
cmd1=$(cat /var/log/messages | grep -e 'blocked for more than 120 seconds' | cut -c 55-62)
if $cmd1 != 0; then echo 'okay'; fi
however i'm messing up somewhere... bash attempts to evaluate the elements in cmd1. when I try to run this script it complains saying:
Quote:
test1.sh: line 5: blocked: command not found
I am open to alternatives. My intent is to replace cat /var/log/messages with dmesg, so I can attempt to determine if a problematic application I use encounters a blocked state (unresponsive for more than 120 seconds).
Should I be using a different test condition? I tried something like:
Code:
# this declares cmd1 as an array
cmd1=($(cat /var/log/messages | grep -e 'blocked for more than 120 seconds' | cut -c 55-62))
#attempt to determine if number of elements in array is greater than zero
if ${#cmd1[@]} > 0; then echo okay; fi
But I get the same error... what am I doing wrong?
View 3 Replies
View Related
Sep 4, 2010
How do I get the L2 and L3 cache size?
View 4 Replies
View Related
Oct 26, 2009
I want to know is there a command to find size of a folder.
View 4 Replies
View Related
Nov 2, 2010
I have been using Debian on and off since Sarge and it's not as long as most people but since I can remember, the installer has always had some issues and I was wondering if you guys who use Debian religiously could answer these questions for me:
1. Difference between "Netinst" & "Business-card" besides the size being smaller? It seems like the Netinst installs two different kernels. One dated kernel to get the system up and running and then it downloads the latest one where I think the 'Business-card' ISO simply downloads the latest kernel and nothing more which seems preferred. Am I wrong?
2. After I install using "Netinst", why when I immediately perform an 'apt-get dist-upgrade' are there multiple packages to upgrade? I thought the whole point was to install fresh updated packages, no?
3. Why has nobody fixed the installer progress bar from hanging on 33%? As far as I have been using / installing Debian, the installer progress bar is always stuck on 33% & it still installs fine but never shows the user it's exact progress. I would think the developers would have resolved this after 4 years by now...
View 6 Replies
View Related
Aug 4, 2010
I started unarchiving a RAR file that this several gigabytes big. The computer is now going really slow, it's almost frozen. Sometimes I can move the mouse a little, but that's it. The unarchiving process seems to have halted, so now all I can do is restart the system. I don't think I can unarchive this file in Linux.
View 5 Replies
View Related