10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Requirement:
Under fuse application we have placeholders called containers;
Every container has their logs under:
<container1>/data/log/fuse.log
<container1>/data/log/fuse.log.1
<container1>/data/log/fuse.log.XX
<container2>/data/log/fuse.log... (6 Replies)
Discussion started by: Arjun Goswami
6 Replies
2. Shell Programming and Scripting
Hello All,
I need immediate help in creating shell script to call archivebkup.ksh script when archive file system capacity reaches threshold value or 60%
Need to identify the unique file system that reaches threshold value.
ex:
capacity
... (4 Replies)
Discussion started by: sasikanthdba
4 Replies
3. Shell Programming and Scripting
Plese help I need a urgent requirement.
Ex: test.log
requirement : using shell script I need to archive the log file and nil and the content of (test.log) file to 0 kb
and then in the archive folder log files are name to test.tar
test1.tar
test2.tar
EX:
/home/abc/
test.log ... (1 Reply)
Discussion started by: johney1981
1 Replies
4. Shell Programming and Scripting
I have written a perl scripts which loads the data.
Now i want to modify the script, to Archive the Input file after the successful load of data.
Can anyone please share it and help me ....
Thanks. (2 Replies)
Discussion started by: msrahman
2 Replies
5. Shell Programming and Scripting
Hi Experts,
I have a "Source" folder which may contain some files. I need a shell script which should move all files which are older than 3 days to "Archive" folder.
Thanks in Advance... (4 Replies)
Discussion started by: phani333
4 Replies
6. Shell Programming and Scripting
Hi all,
I am new to linux and scripting so please forgive me. I need to create a script that will archive files but the max size of the archive need to be 500mb or under. I know about the archiving with parts but i want all the archives as individual archives. Can anyone point me in the correct... (7 Replies)
Discussion started by: craig0
7 Replies
7. Shell Programming and Scripting
Hi All
We have a landing directory where source system puts files.There are variable number of files and the file names are also varying.Each files successful transmission is identified by a .done file.If file name is xyz.dat then the confirmation file will be xyz.dat.done.
I want to... (1 Reply)
Discussion started by: dr46014
1 Replies
8. Shell Programming and Scripting
hi guru,
can advise how to construct a housekeeping script using perl for the following ?
find /var/tmp/logs -name "si*" -type f -exec gzip -f {} \;
find /var/tmp/logs -name "*.gz" -type f -exec mv -f {} /var/tmp/log \;
I found out those are not working in shell at when put them on... (1 Reply)
Discussion started by: rauphelhunter
1 Replies
9. Shell Programming and Scripting
Would appreciate if any one can paste a generic schell script to archive a file with date stamp by passing the file with fullpath as parameter
For Eg. /apps/scripts/Archive_File.sh /data_home/project_home/file.txt
this should place the file in the following directory
... (8 Replies)
Discussion started by: mak1600
8 Replies
10. Shell Programming and Scripting
Hi There,
I want to create a script that will archive files out of a log folder into seperate folders below it, but I need it to keep the previous 2 days worth of information. Now I know I can easily get a script to put the files in there but I don't know how to only get files older than 2 days,... (10 Replies)
Discussion started by: KeesH
10 Replies
ARCHIVE(8) System Manager's Manual ARCHIVE(8)
NAME
archive - Usenet article archiver
SYNOPSIS
archive [ -a archive ] [ -f ] [ -i index ] [ -m ] [ -r ] [ input ]
DESCRIPTION
Archive makes copies of files specified on its standard input. It is normally run either as a channel feed under innd(8), or by a script
before expire(8) is run.
Archive reads the named input file, or standard input if no file is given. The input is taken as a set of lines. Blank lines and lines
starting with a number sign (``#'') are ignored. All other lines should specify the name of a file to archive. If a filename is not an
absolute pathname, it is taken to be relative to /var/spool/news.
Files are copied to a directory within the archive directory, /var/spool/news/news.archive. The default is to create a hierarchy that mim-
ics the input files; intermediate directories will be created as needed. For example, the input file comp/sources/unix/2211 (article 2211
in the newsgroup comp.sources.unix) will be copied to /var/spool/news/news.archive/comp/sources/unix/2211.
OPTIONS
-a archive
If the ``-a'' flag is used then its argument specifies the directory to archive in instead of the default.
-f If the ``-f'' flag is used, then all directory names will be flattened out, replacing the slashes with periods. In this case, the
file would be copied to /var/spool/news/news.archive/comp.sources.unix/2211.
-i If the ``-i'' flag is used, then archive will append one line to the specified index file for each article that it copies. This
line will contain the destination name and the Message-ID and Subject headers.
-m Files are copied by making a link. If that fails a new file is created. If the ``-m'' flag is used, then the file will be copied
to the destination, and the input file will be replaced with a symbolic link pointing to the new file.
-r By default, archive sets its standard error to /var/log/news/errlog. To suppress this redirection, use the ``-r'' flag.
EXIT STATUS
If the input is exhausted, archive will exit with a zero status. If an I/O error occures, it will try to spool its input, copying it to a
file. If there was no input filename, the standard input will be copied to /var/spool/news/out.going/archive and the program will exit.
If an input filename was given, a temporary file named input.bch (if input is an absolute pathname) or /var/spool/news/out.going/input.bch
(if the filename does not begin with a slash) is created. Once the input is copied, archive will try to rename this temporary file to be
the name of the input file, and then exit.
EXAMPLES
A typical newsfeeds(5) entry to archive most source newsgroups is as follows:
source-archive
:!*,*sources*,!*wanted*,!*.d
:Tc,Wn
:/usr/lib/news/bin/archive -f -i
/usr/spool/news/news.archive/INDEX
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.14, dated 1996/10/29.
SEE ALSO
newsfeeds(5).
ARCHIVE(8)