LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-01-2004, 09:35 AM   #1
ashley75
Member
 
Registered: Aug 2003
Posts: 232

Rep: Reputation: 30
zip the file


Hi all,

I have the below scripts on the bourne shell to backup my database every day:

#!/bin/bash
ORACLE_SID=test
export ORACLE_SID
ORACLE_HOME=/home/oracle/product/9.2.0
export ORACLE_HOME
NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
export NLS_LANG


/home/oracle/product/9.2.0/bin/exp system/one4all
file=/u02/backup/$ORACLE_SID/exp_$ORACLE_SID.dmp
log=/u02/backup/$ORACLE_SID/exp_$ORACLE_SID.log full=y direct=y



could someone please give me the next command line to zip the .dmp file???

thanks so much
 
Old 05-01-2004, 12:52 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
You could just use gzip to zip it up in a gz format..

gzip <filename>

For any special options man gzip to see the man pages. But from what I've seen when zipping individual files, you might not see much compression to save in size.. so it might not even be worth it at times. It comes really handy when you have mulitiple files you want to zip up, etc.

Last edited by trickykid; 05-01-2004 at 12:54 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
corrupt zip file - NEED HELP!!! FNC Linux - Software 2 10-29-2006 12:09 PM
windows zip file d1l2w3 Linux - Software 8 03-01-2005 09:00 PM
create a self-extracting zip file with zip on solaris? samsolaris Solaris / OpenSolaris 3 10-15-2004 01:50 AM
Zip File Help :D neozero62 Linux - Newbie 2 01-11-2004 04:59 PM
zip file athenerx Linux - Newbie 1 06-24-2001 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration