10-22-2012
Sorry for the confusion.
What I meant to say was I had a directory named backup and I wanted that directory in format as
backup.tar.gz
I used gunzip directly but it gave me an error
gzip: backup is a directory -- ignored
So I wanted a command for directory.
Hope my query is clear.
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi...........
i have downloaded...sunscreen3.1 lite frm sunfreeware .com and it is in tar.gz format..so i download gzip also...
now pls tell me how to install gzip and how to unzip tht sunscreen tar.gz file..............after unzipping i have to untar the tar file or not.....pls tell me in... (2 Replies)
Discussion started by: Prafulla
2 Replies
2. UNIX for Dummies Questions & Answers
Hi
can't unzip a gz file in TurboLinux 7.0
when i'm trying this
gunzip filename.tar.gz it always says not in gzip format
what should I do...please help me (4 Replies)
Discussion started by: CreamHarry
4 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I am a newbie to unix and need help.
I am trying to unzip the files in source library to destination library.
the input filename can be any thing with abc and after unzip, i want the same file name with original extension
suppose,the input file is ABC_jun25.dat.gz after gunzip in the... (1 Reply)
Discussion started by: onlyjayaram
1 Replies
4. Shell Programming and Scripting
Hi All,
I am using UNIX command to unzip the files
gzip -d9 DW_*.gz
The Xmls are compressed using gzip and it is received in the .gz format at UNIX box which need to be uncompressed.
The above command is working fine for 400 compressed xmls(.gz files) but when the count becomes 401 or more i... (7 Replies)
Discussion started by: Codesearcher
7 Replies
5. UNIX for Dummies Questions & Answers
I have a zip file as a.zip and it contains 1m xml files. like a1.xml, a2.xml....
The size is also very big nearly 1GB. I want to extract only a123.xml.
Can any one help how can I do this? (1 Reply)
Discussion started by: siba.s.nayak
1 Replies
6. Shell Programming and Scripting
Hi All,
I have a file "HOTEL_INFO.zip" and getting the below errors:
server1:/home/arun# gunzip -S .zip HOTEL_INFO.zip
gunzip: HOTEL_INFO.zip: first entry not deflated or stored -- use unzip
server1:/home/arun#unzip HOTEL_INFO.zip
ksh: unzip: not found.
... (11 Replies)
Discussion started by: Arunprasad
11 Replies
7. Shell Programming and Scripting
Hello Everyone,
I have a few files in a directory such as :
abc.xyz.txt1.gz
abc.xyz.txt2.gz
....
....
...
...
abd.xyz.txt100.gz
And I want uncompressed files such as:
abc.xyz.txt1
abc.xyz.txt2
....
...
.....
.... (1 Reply)
Discussion started by: ad23
1 Replies
8. Shell Programming and Scripting
Hi all,
tar cvPf - /data/test | gzip > /data/backups/test.gz
i am running th above command when i execute it giving a big list of files that in test which it is tarring..on the terminal....
is der nay way to do it silently ..... like with out getting those messages on the terminal.....
... (1 Reply)
Discussion started by: firestar
1 Replies
9. UNIX for Dummies Questions & Answers
Hi
I wanted to tar and gunzip a file named backup
tar: backup.tar: Wrote only 2244 of 10240 bytes
tar: Error is not recoverable: exiting now
Please tell me what I am doing wrong?
Please do help. (4 Replies)
Discussion started by: sonia102
4 Replies
10. Shell Programming and Scripting
Hi everyone----I have big file like 15G to 20G and took really long time to get the output, cause run 3 steps gunzip -c below to get the ouput. Is there is the way can run 1 command line gunzip -c then get all 3 output (Unzipped Bytes, Records, Record, Length) same time? Please any input for... (5 Replies)
Discussion started by: dotran
5 Replies
BACKUP(8) System Manager's Manual BACKUP(8)
NAME
backup - backup files
SYNOPSIS
backup [-djmnorstvz] dir1 dir2
OPTIONS
-d At top level, only directories are backed up
-j Do not copy junk: *.Z, *.bak, a.out, core, etc
-m If device full, prompt for new diskette
-n Do not backup top-level directories
-o Do not copy *.o files
-r Restore files
-s Do not copy *.s files
-t Preserve creation times
-v Verbose; list files being backed up
-z Compress the files on the backup medium
EXAMPLES
backup -mz . /f0 # Backup current directory compressed
backup /bin /usr/bin
# Backup bin from RAM disk to hard disk
DESCRIPTION
Backup (recursively) backs up the contents of a given directory and its subdirectories to another part of the file system. It has two typ-
ical uses. First, some portion of the file system can be backed up onto 1 or more diskettes. When a diskette fills up, the user is
prompted for a new one. The backups are in the form of mountable file systems. Second, a directory on RAM disk can be backed up onto hard
disk. If the target directory is empty, the entire source directory is copied there, optionally compressed to save space. If the target
directory is an old backup, only those files in the target directory that are older than similar names in the source directory are
replaced. Backup uses times for this purpose, like make. Calling Backup as Restore is equivalent to using the -r option; this replaces
newer files in the target directory with older files from the source directory, uncompressing them if necessary. The target directory con-
tents are thus returned to some previous state.
SEE ALSO
tar(1).
BACKUP(8)