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


ADVERTISEMENT

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 :: 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 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

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

General :: Sshd Accepts Root Login Without Password?

Jul 18, 2011

I'm trying to figure out why my industrial appliance (x86, running kernel 2.6.21.7 and OpenSSH_4.3p2 / OpenSSL 0.9.7m) accepts ssh connections without asking for a password (even for root)!When I log on to the local console as root I have to enter a password but strangely this prompt won't appear using a ssh connection (although I'm not using any client certificates).Of course that not acceptable but I just can't find the related configuration entry to disable this "password-less" authentification.Is this related to the sshd or has it something to do with the PAM module?

- Update ->
While looking at /var/log/secure, I've found the following lines:
Jul 18 16:55:07 localhost sshd[5712]: Accepted none for root from XXX port 6393 ssh2

[code]....

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

Programming :: Awk - Display From The List Of Files Given As Parameters

Mar 12, 2011

I have to display from the list of files given as parameters the name of the file with the largest number of words and their number.(with AWK)

View 2 Replies View Related

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

Programming :: Open Two Text Files - Read Them Line By Line And Update Parameters Of The 3rd File ?

Oct 18, 2010

I have two txt files containing x and y coordinates: xcoord.txt & ycoord.txt. I need to open them; read them line by line to get each coordinate; then each time I need to update Xs and Ys parameters inside another file called "dc.in" with the grabbed values.

Finally each time I need to run two exe files ( dc_2002 and st_vac) and produce corresponding output for each Xs and Ys ( dc.in is an input file for this exe files)

I have written the following code but it does not work:

View 14 Replies View Related

Fedora Networking :: Samba Accepts One User But Refuses Other?

Jun 28, 2010

On a fedora 10 server i have installed a samba server.When i log in from Mac OS X as user 'jody' with my password for the server,i get access to the directories on the server.But when user 'ani' logs in with her password for the server,the connection is refused.Both users can log in directly at the server.For user 'jody' the entries in the samba log are:

Code:
[2010/06/28 17:07:25, 0] lib/util_sock.c:matchname(1749)
matchname: host name/address mismatch: ::ffff:xxx.yyy.zzz.115 != tester.uzh.ch

[code]....

View 2 Replies View Related

Ubuntu :: G++ Accepts Mpz_t But Calls Undefined Reference On Mpz_add And Others?

May 18, 2010

Compiling the following code:

#include <iostream>
#include <gmp.h>
int main()

[code]....

View 2 Replies View Related

Server :: Connect With Any Ftp Software It Accepts The Username But Rejects Any Password?

Apr 25, 2010

Ok I am new to all this, I did have a server years ago but have forgotten most of what I learned. My problem is getting ftp to connect to the server. I have centos and it has proftpd but I'm lost when it comes to the conf file. I created a user in plesk but when I try to connect with any ftp software it accepts the username but rejects any password. I have tried a million combinations but I just can't get my head around this. I have used it before many years ago and managed ok but that was using webmin. I feel I've bitten off more than I can chew with this server although I have managed everything else

View 2 Replies View Related

General :: Parameters To Be Used With Chmod?

Jan 12, 2011

How to use CHMOD in linux? When I try to delete a file/folder, permission is denied. What exact params must I give for chmod here? This is what I need to do. Execute a command ./build.mips , but I get permission denied error.

kirti@sgf:/disk/go$./build.mips
-bash: ./build.mips: Permission denied

View 3 Replies View Related

Fedora :: F11, Gnome. System-config-services No Longer Accepts Authentication?

Nov 14, 2009

I can no longer start cups with system-config-services (System->Administration->Services). I am prompted for the root password but it is not accepted. I can start cups in a terminal with

Code:
$ su
Password:

[code]....

View 2 Replies View Related

Ubuntu :: Black Screen And Only Accepts Terminal Commands After Press Crtl+alt+F3?

Nov 10, 2009

So I pressed ctrl+alt+F3 and now my whole system is basically one big terminal - black screen and only accepts terminal commands. How do I go back to the 'normal' Ubuntu desktop screen? Rebooting only takes me back to the terminal command page described above. I can access root commands with sudo bash and my password, if fact all terminal commands seem to work. Is there a command I can use to go back to the regular desktop?

View 10 Replies View Related

General :: Get N-variable Parameters In Bash

Mar 21, 2011

I've a script that it's invoked with n-variable parameters. Here's an examples:

Code:
./myprogram.sh inputdir FIELD1 FIELD2 ... FIELDN outputfile In the script I would like to get the FIELD names that were passed.

View 4 Replies View Related

General :: Passing Parameters To Script ?

Mar 13, 2010

I have the following bash script:

Code:

Which has the name 'extractemails.sh' and works just fine.

However, i whish to be able to give the url (or any other url) as a parameter when i run the script like this: $ extractemails.sh [url]

What should i change in my code? i have never tried passing parameters to scripts before.

View 4 Replies View Related

General :: Postfix Not Accepting Parameters?

Mar 6, 2011

the problem is i am changing the parameters in main.cf file but postfix is not accepting them. its still inheriting my system's host name and domain

here is my configuration

my main.cf file
myhostname = mail.example.com
mydomain = example.com
myorigin = $domain

[Code].....

Nothing is accepted. I have test this on CentOS 5.5 and Fedora 14 both have the same result.

View 3 Replies View Related

General :: Command - What Does The 'sort' Parameters And Awk Do?

Dec 21, 2010

I am reading a tool manual and it instructs to use such a command:

Code:

Especially, what does the 'sort' parameters and awk do?

View 8 Replies View Related

Software :: PDF Editing And Archiving

Jul 22, 2010

I'm looking for an application that will give me some advanced tools for editing PDFs.

Here are the features I'm looking for:
Editing metadata (tagging with keywords)
Merge multiple PDFs
Rearrange page order
PDF bookmarking
Optical Character Recognition

I can give further clarification on these items if needed. My goal is to convert all of my paper files into digital files that I can store on my server. In order to effectively do this, I need the tools listed above.

Is there anything in the linux world that will give me these PDF editing abilities?

View 4 Replies View Related

General :: How To Download With Wget Without Following Links With Parameters

Jun 29, 2010

I'm trying to download two sites for inclusion on a CD:URL...The problem I'm having is that these are both wikis. So when downloading with e.g.:wget -r -k -np -nv -R jpg,jpeg, gif,png, tif URL..Does somebody know a way to get around this?

View 2 Replies View Related

General :: Script - Copy Parameters To Other Program?

Sep 18, 2011

I have made a script ocrun param1 param2 that calls another program like oprun param1 ..

i would like somehow param3 and all following (parami) to be copied to oprun.. ex:

`ocrun param1 param2 param3 param4
`oprun param1` param3 param4

How can i achieve this ?

View 1 Replies View Related

General :: Seeking Distro With Specific Parameters

Feb 11, 2010

This is a WHAT I WANTAND NEED IN A LINUX DISTRO, not a your preference request. Fairly literate with Windows XP, but would like to find a Linux Distro with specific features. Computer used for music (over 14k mp3, ogg Vorbis, etc files) and burning musical learning tracks (I'm a barbershopper) as well as simple surfing and email. Not a gamer. Older Computer: PC with 1.4 GHz Athlon partitioned 320 Gig HD (Windows XP and a Linux Distro??) Only have CD-ROM, cannot download & burn iso DVD's or upload from them. (Can do CD's) Do have a 1 TG Verbatum external HD and a newer computer with a dvd recorder/player
So:

1) MUSTt have a distro that doesn't require a DVD for installation.

2)MUST be able to "update" rather than re-install subsequent releases ( which require backing up files, etc)

3) Like the description of Linux Mint Helena, but it requires installation from a DVD and a re-install..

4) Free distro since I'm learning and trying out different OS's and really resent the increasing cost of Windows OS's as well as the complexity and problems with Windows. I've found that UBUNTU 9.10 doesn't like me. I am very comfortable with LINUX MINT HELENA.

View 5 Replies View Related

General :: How Increasing RAM Affects Kernel Parameters

Nov 16, 2010

We just doubled the RAM on our RHEL 4 production servers...Oracle from 16gb to 32gb and Apache/JBoss from 8 to 32 gb. I am trying to figure out how to get the biggest bang from the increased RAM. Should kernel.shmmax be upped to be 50% of the 32gb....from its current 8gb? I need to create the largest possible SGA and was unable to do so, apparently because the kernel.shmmax value had gone unchanged.

And for the JBoss web servers, also RHEL 4, and particular kernel changes which can take advantage of the increased RAM and provide an immediate performance improvement?

View 7 Replies View Related

General :: Install Mint 9 KDE With Installation Parameters?

Aug 11, 2010

I want to install Mint 9 KDE but I need to specify some installation parameters. I need to set the default filesystem as EXT3 so I can create a disk image with Acronis True Image that doesn't support EXT4 yet.

I've done the same with Ubuntu Server 10.04 by including the parameter 'partman/default_filesystem=ext3' at the installation console. I know Mint 9 Gnome can also be installed direct from the CD, but the KDE Live DVD doesn't give me any such option - just the desktop installer.

How do I customise the installation of Mint 9 KDE?

View 2 Replies View Related







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