General :: Control Gzip Compression Rates While Archiving Files With Tar?

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


ADVERTISEMENT

General :: Command Line - Unix - Program That Can Handle All Popular Compression/archiving Formats - E.g.tar, Gzip, Bzip2, Zip?

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

General :: How To Know Gzip Compression Level

Apr 12, 2011

Given a gzip compressed file, how do I know what compression level (1-9) was used for it?

View 2 Replies View Related

Debian :: Get Good Compression Rates On Pdf?

Aug 29, 2011

Does anybody how to get good compression rates on pdf?

The default gzip somefilename.pdf gives hardly 10% in the pdf. Any ideas anybody ?

View 1 Replies View Related

General :: Automate Archiving Of Log Files Using Tar?

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

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 View Related

General :: Archiving Log Files - Script That Accepts Two Parameters InputDir And OutputDir

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

General :: Gzip Multiple Files Into One Gz File?

Mar 29, 2011

I have 100 files: cvd1.txt cvd2.txt ... cvd100.txt

How to gzip 100 files into one .gz file so that after I gunzip it, I should have cvd1.txt, cvd2.txt ... cvd100.txt separately?

View 4 Replies View Related

General :: Gzip Command To Append Some Files

Feb 21, 2011

I have a existing zipped file , I want to use gzip command to append some files to it , I tried man gzip but can't find the key word "append" , can advise how can I do it ?

View 1 Replies View Related

Fedora :: Compression Ratio For Text Files / Binary Files

Apr 15, 2011

Fedora provides several compression techniques. E.g tar, tar.gz, zip etc. I want to know which among them provides

1. the best compression ratio for text files

2. the best compression ratio for binary files

3. fastest compression

View 6 Replies View Related

Ubuntu :: Archiving Many (>100000) Files Into A Single File Via Cli

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

Server :: Gzip Log Files In Remote Servers?

Jun 7, 2011

I have limited access to several servers (key based auth) but cron facility is not available for me. Those servers getting filled up by large apache logs and I have to login to each node manually and clean them each and every day.

I tried to write a script to run from login box but when i try that it looks like it is looking for logs in the local server (login box).

So current situation is:

How can i modify this so that the script in server1 will look for files in that server and zip them?

Google showed another command called rsh but in my env it is also not avil.

View 5 Replies View Related

Debian Configuration :: Extract Gzip File Don't Get Any Installable Files

Apr 6, 2016

I have installed debian on my dell latitude d630 laptop and am currently making a derivative for others to use. however I can't get the wireless to work. I downloaded it from the broadcom site but it comes as a gzip file instead of a deb file. if I extract the gzip file I don't get any installable (deb) files. I need the wireless to work because now a bridged network from my windows laptop isn't working.

View 3 Replies View Related

General :: Archiving Bash - Script In VIM ?

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

General :: Get Mail And File Archiving Software?

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

General :: Difference Between Archiving And Backup Of Data?

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

General :: Ubuntu Slows To Crawl When Un-archiving Big File

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

General :: Remote File Copy Through Archiving Software ?

Oct 6, 2010

I need to back up a fold on a remote machine to my local box; the remote hd does not have enough space archive it, neither does my local box. I know there's a cantrip to pipe scp through gzip (or similar), but I don't remember the syntax.

View 1 Replies View Related

General :: Which Version Control Should Use For Configuration Files

May 8, 2010

I want to store some of my configuration files (~/.emacs.d/, .Xdefaults, etc. linux $HOME stuff) in version control so I can easily sync them with my notebook/workplace and see my past changes and revert to them should the need arise.

So far it seems to me that there are quite some people using git for this and I think that I too want to use a distributed vcs for this (if only to get more used to them) but I can't say that I am very experienced with all things dvcs. I did use darcs and git briefly and so far I can say that I really like the way git handles branches, and I think the possibility to have different branches within the same directory is especially useful for my use case. Darcs on the other hand has cherry picking of patches, which too is quite the convenient feature when managing configuration files (at least I assume it is).

So, what would you recommend to use? And what would be your reasoning for your recommendation? What other vcs with nice feature that I haven't mentioned exist and would make a good vcs to store configuration files and why?

View 2 Replies View Related

General :: Shell Script For FTP And Gzip?

Apr 5, 2010

I want to be able to write a shell script for downloading files (only *.tar extension) from multiple folders (the sub folder's names may vary) in a FTP site and be able to untar them and then gzip them and then move them to the real folder.

View 4 Replies View Related

General :: Tcpdump Decode Gzip Packets?

Mar 11, 2010

Does gzip have the capability to decode gzipped traffic? I have been beating my head against the wall with this issue. What I'm trying to do is capture traffic between a web server and clients, and I've got it set up where it's redirected to a file for ease of grepping, however it's seemingly incapable of decoding gzipped encoding. I know I can do this with tshark, I'm curious as to whether tcpdump has this capability (i.e. only using tcpdump, and not some additional tool like tcpshow or what-not).

I can't find much on this issue in the man page for tcpdump, but it is fairly lengthy, so it's possible that I missed something, but I don't see that as especially likely.

View 2 Replies View Related

General :: Windows - Program Which Uses LZW Compression

Oct 4, 2010

how to do Lempel-Ziv-Welch compression using pen and paper for my algorithms and data structures class. Unfortunately we have only a couple of examples in our book of how it is done. I'd like to practice compressing and decompressing text using it, but I need to find a way to check if I'm right doing it right or wrong.

So I'm looking for some preferably free/open source program which can compress and decompress LZW for Windows or GNU/Linux. Programs without binary distributions are fine too.

View 2 Replies View Related

General :: Specify Level Of Compression When Using Tar -zcvf?

Jul 1, 2011

I gzip directories very often at work. What I normally do is

tar -zcvf file.tar.gz /path/to/directory

Is there a way to specify the compression level here? I want to use the best compression possible even if it takes more time to compress.

View 3 Replies View Related

General :: Backup Script Multiple Gzips Into One Bzip2 Or Gzip?

Feb 18, 2010

I have a backup script basically is this

Code:

BACKUP_DIRS="/etc /boot /root /home"
BACKUP_FOLDER="/tmp/system_backup/
for DIR in ${BACKUP_DIRS}
do

[code]....

All the folders get dumped into seperate gzip files. Now I want all the gzip files in the backup folder into one final gzip or bzip2 file. My goal for this is to get one file instead of multiple so I can scp or ftp the one file to another file share. Which would be easier to send one file than a bunch of files.

View 2 Replies View Related

General :: Find The TCSH Shell And Gzip Version Number?

Apr 7, 2010

I need to find TCSH shell and gzip version number by running a acript on several boxes through ssh. How can i do that? I made a script for tcsh but it is not working by ssh , it only works on my box . I dont know from where to find the gzip version info.

View 5 Replies View Related

General :: Install A PCIe Card For Data Compression In Ubuntu 9.10?

Jun 21, 2010

I am trying to install a PCIe card for data compression in Linux ubuntu 9.10(karmic Koala). As you can see in the following code although I have the root access I can not get permission to install the device driver.As I have the root access I suppose to get access to install the driver. I checked around and got the procedure from a web siteEnabling root access in unbuntuBasically in almost all linux machines we will be havingroot access for login.but in ubuntu by default that option was not enabled.If u want to have root login in ubuntu then u have to do some changes in ur Ubuntu machinesSteps to follow1.First enter into ubuntu as your user login.2.Then open the terminal and type the command sudo -s,it will ask for root access and type the password.3.Then type passwd root it will ask for new password4.Open terminal and go to the path /etc/gdm/5.Open gdm.conf6.search for AllowRoot=false7.and then change AllowRoot=true8.now restart ur machine9.now u can enjoy with root accessThe funny part is when I search for the file which is gdm.conf in the prescribed location, I can not find it.

Code:
root@faisal-desktop:/home/faisal/Desktop# cd AHA/
root@faisal-desktop:/home/faisal/Desktop/AHA# ls

[code]....

View 6 Replies View Related

General :: 'File Is Not In Gzip Format' - Error Exit Delayed From Previous Errors

Oct 23, 2010

I am trying to upload an IOS in the cisco NAC Appliance. The IOS version has to be updated as 4.8. I am getting the below error when i tried. File is not in gzip format Child return status 1 Error exit delayed from previous errors. I am using the below command to unzip the IOS file. tar xzvf ccca_upgrade-4.8.0-from-4.6.x.tar.gz.

View 3 Replies View Related

General :: Split A Gzip File Based On Size And Have A Prefix Without Changing Extension?

Jan 18, 2010

have a gzip file ABC_000023232.gzipBCD_023232032.gzipI want to split these files into smaller files but keep the extension same because I am using this as a variable in a script

Code:
for i in `ls *.gzip`
split -b 500K $i $i

[code]...

View 3 Replies View Related

Slackware :: Can't Change Refresh Rates In Kde / Fix It?

Jul 9, 2011

I've just installed Slackware 13.37 but there seems to be an issue.
i can't change my refresh rates(i want to change ir from 75 to 85 KHZwhich are the only options) as each time i change 85 in KDE from system settings works until i restart X then it goes to the previous setting which is 75.my xorg.conf looks like this code...

View 4 Replies View Related

Ubuntu :: Data Transfer Rates Over Usb/lan Slow?

Jul 18, 2010

I am running ubuntu 10.4 lts desktop and ubuntu 9.10 server with the gui active. On both of these machines the data transfer rates over usb and lan have slowed down quite considerably. Also over multiple devices, not the same hardware everytime I try to transfer something.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved