01-10-2009
Compressing several directories
Could someone help with the easiest command to compress several directories and files?
For example, I want two directories:
/var/www/logs/
and
/var/www/zones/
and this file:
/var/www/messages
to be compressed by tar/zip to a specific output directory like:
/var/www/backup.extension
But, I want the original files to remain intact (not deleted)
Thanks in advance for your help!!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have never used this command before. I need to use the "compress" command to compress all files located in the subdirectories under the following directories:
/home/ftp/inbound/Fordin
Please advise, I appreciate your help.
Thanks,
Syed (3 Replies)
Discussion started by: sh9492
3 Replies
2. UNIX for Dummies Questions & Answers
I have a utility provided by our vendor to dump data from their system. It is
expsysdb -s prod proddata.dmp
"-s" and "prod" are parameters and "proddata.dmp" is the file name that the data is dumped to (this can be any name). Our current system (AIX 4.3) has a file size limit set to 1... (7 Replies)
Discussion started by: jyoung
7 Replies
3. Shell Programming and Scripting
HI,
let say I have file having name "skp 27.doc". There is space between skp and 27. now I want to rename this file . So please let me know how is it possible?
one more issue .............
let say
a=5
echo $a
output is 5.
Again
a= 4
echo $a
wha will be the output? (1 Reply)
Discussion started by: surjyap
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Is there any way to compress folders as such? May look simple, but I have a folder, which inturn has several folders/files in it. Is there any way to compress this parent folder?
Thanks in advance,
Mohan. (4 Replies)
Discussion started by: mohanprabu
4 Replies
5. UNIX for Dummies Questions & Answers
I have a pretty large directory on a backup hard drive.
I have Tiger for an OS, what would be the best way to compress this directory. there is a large number of files inside in addition if that makes a difference
any help appreciated hopefully thanks in advance (2 Replies)
Discussion started by: cleansing_flame
2 Replies
6. UNIX for Dummies Questions & Answers
hi,
i am trying to rewrite some of my code onto one line. but it's not working.
what's happening is that the program exits and doesn't execute any of the code that follows.
did i make a mistake? i'm guesssing that there is something wrong with my final, "&& exit".
or is possible... (1 Reply)
Discussion started by: ankimo
1 Replies
7. Shell Programming and Scripting
I have the following script to archive and compress the zip files created by my jira application, on a daily basis. But the compression seems to be not working. Each zip file is of size 103 MB. When I archive it, its coming close to 3-4 gb. But when I use gunzip or bzip2 the size is not getting... (4 Replies)
Discussion started by: Tuxidow
4 Replies
8. Shell Programming and Scripting
hi
pls give me a script to compress all directories inside a directory and remove the original uncompressed version...
>>
please also tell the single commmand to uncompress all the directories back...whemn needed (2 Replies)
Discussion started by: dll_fpga
2 Replies
9. Shell Programming and Scripting
I need help to do a script that will compress a file that's bigger than 5000 octets and won't overwrite the previous compress file.
lets say I have mylogfile.log and I would compress it I would become
mylogfile. 1. log and if I would compress again mylogfile.log it would be
mylogfile. 2.... (8 Replies)
Discussion started by: Froob
8 Replies
10. Shell Programming and Scripting
Hi,
Is there any way to change the file name while compressing ? using Compress and gzip and tar ?
Say, I have a file foo.txt - so I have to compress this file and the resultant file name is foo.txt_20130113.gz or foo.txt_20130113.Z
This to be done while performing the compression... (2 Replies)
Discussion started by: karumudi7
2 Replies
LEARN ABOUT SUSE
scrollkeeper-update
SCROLLKEEPER-UPDATE(8) System Manager's Manual SCROLLKEEPER-UPDATE(8)
NAME
scrollkeeper-update - identify new, modified, or removed OMF files and update the scrollkeeper databases
SYNOPSIS
scrollkeeper-update [ -v ] [ -q ] [ -n ] [ -p database-directory ] [ -o omf-directories ]
DESCRIPTION
This synchronizes the scrollkeeper database with the OMF directory. It searches the scrollkeeper OMF directory to identify if any files
were added, removed, or modified and updates its internal database files to reflect any changes.
This utility is generally executed as the last step of installation, after the OMF file is copied into place. It is also typically the
last step of uninstallation, after the OMF file is removed. Using this, an administrator can easily manually install and uninstall docu-
ments into the database. It can also be run to guarantee the database is fully up-to-date.
Note that because scrollkeeper-update is normally run during installation and its output is typically seen by users, non-critical warnings
and errors such as those caused by invalid metadata are written to the log file instead of to the terminal. Developers should use the log
file to identify any problems.
OPTIONS
-v Be verbose: Say which scrollkeeper-install and scrollkeeper-uninstall commands are being run to bring the database up to date.
-q Run in quiet mode, suppressing output of all but the most serious warning and error messages to STDOUT. Note that most output to
the log file will be unchanged.
-n Use the network to retrieve the DTD if it is not available via the system's XML catalog.
-p database-directory
Use database-directory as the directory for the scrollkeeper database rather than the usual one obtained by running scrollkeeper-
config --pkglocalstatedir.
-o omf-directories
Examine the directories named in omf-directories rather than the one usual one obtained by running scrollkeeper-config --omfdir (or
specified in the OMF_DIR environment variable if set). The omf-directories should be a colon-separated list of directories.
ENVIRONMENT
OMF_DIR
If no -o option is specified, this variable overrides the scrollkeeper-config-provided OMF directory. It should be a colon-sepa-
rated list of directories.
FILES
/var/lib/scrollkeeper/scrollkeeper_docs
/var/lib/scrollkeeper/TOC/<docnumber>
/var/lib/scrollkeeper/<locale>/scrollkeeper_cl.xml
/var/lib/scrollkeeper/<locale>/scrollkeeper_extended_cl.xml
/var/log/scrollkeeper.log
AUTHOR
Laszlo Kovacs <laszlo.kovacs@sun.com>
Dan Mueth <d-mueth@uchicago.edu>
SEE ALSO
scrollkeeper-config(1), scrollkeeper-gen-seriesid(1), scrollkeeper.conf(5), scrollkeeper(7), scrollkeeper-preinstall(8), scrollkeeper-
rebuilddb(8)
scrollkeeper Dec 5, 2001 SCROLLKEEPER-UPDATE(8)