10-19-2006
Archiving
Hi,
I want to archive below directory
ex: /home/oracle/dd0
sub-directories in dd0
/home/oracle/dd0/backup/backup1
/home/oracle/dd0/backup/backup2
/home/oracle/dd0/dmp
....etc
I want a command(tar) which will let me archive the above directory excluding *.dmp(dump files), *.log(log files) in that directory & in the sub-directories also.
So the archived file doesn't have *.dmp(dump files), *.log(log files) in it.
Pls reply ASAP.
thanks
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am looking for some advice. I have some files on a Unix server, which contain symbolic links. I need to copy these over to a nfts environment, but wish to keep the symbolic links intact. Any ideas? (7 Replies)
Discussion started by: rmasonuk
7 Replies
2. Shell Programming and Scripting
Hello Gurus,
I have a requirement where I have to remove users that have not logged into our unix box last 90 days. I want to script this one and remove the users automatically now and then. Has any one ever done this before, if so please give me some sample code. I am not a good unix... (2 Replies)
Discussion started by: suseesk
2 Replies
3. UNIX for Dummies Questions & Answers
Hi friends
I work on UNIX Operating system and I have many servers.
ADM server make archiving for special data every day inside XYZ directory at specific time,the next time SPERADM server will take that archiving data to put them in same directory (inside SPERADM server).
Now archiving... (2 Replies)
Discussion started by: bintaleb
2 Replies
4. Shell Programming and Scripting
Hi all. I am trying to set up archiving of directories, such that I keep every directory made in the past week, but just one directory per week beyond that. Using the find command, I can easily delete everything more than one week old, but can not figure out how to save one.
Each directory... (4 Replies)
Discussion started by: aefskysa
4 Replies
5. Shell Programming and Scripting
Hi,
Suppose I have 2 files of yesterday's. And today I have received 3 files.
Before processing anything I want to archieve the 2 files of yesterday's into a different folder.
How can this be done?
Regards,
Sunitha (1 Reply)
Discussion started by: Sunitha_edi82
1 Replies
6. UNIX for Advanced & Expert Users
Dear Unix Experts,
I am trying to backup some legacy data based on date. I am pasting a small portion from the ls -al command from my session for reference.
athena>ls -al
./nmr/exam1d_13C:
total 32
drwxrwxrwx 3 root root 4096 May 1 2008 1/
drwxrwxrwx 3 root ... (1 Reply)
Discussion started by: jaison75
1 Replies
7. Shell Programming and Scripting
Hi,
I am trying to develop a KSH script, to perform the following functions:
1. ZIP the previous day backup to ZIP Directory, while removing any ZIP file older than a week.
2. Perform the backup.
3. Send a confirmation mail with subject content of the size of file.
Please let me... (0 Replies)
Discussion started by: johnprince1980
0 Replies
8. Shell Programming and Scripting
hi,
Am trying to acrhive a bunch of files on some ftp site and somehow managed to come out with the below logic.
I'm getting "syntax error: unexpected end of file" error. Interestingly this below snipeet works fine if run for the first time but the subsequent runs fail!
Anybody has any idea... (3 Replies)
Discussion started by: Amee5
3 Replies
9. Shell Programming and Scripting
Hi ,
Might be the very basic question and most frequent one also..
wanted to archive the logs/files older than one month or older than 30 days to some particular location.
File/log format is like below
ABCD_EF_GHIJ_Defaulter_Report_(06-Jun-2014_11-50-20_AM)
Source : /test/ABC... (3 Replies)
Discussion started by: Riverstone
3 Replies
LEARN ABOUT OSF1
db_archive
db_archive(8) System Manager's Manual db_archive(8)
NAME
db_archive - displays security database log files no longer involved in active transactions (Enhanced Security)
SYNOPSIS
/usr/tcb/bin/db_archive [-alsv] [-h home]
FLAGS
Write all pathnames as absolute pathnames, instead of relative to the database home directories. Specify a home directory for the data-
base. The correct directory for enhanced security is /var/tcb/files. Write out the pathnames of all of the database log files, whether or
not they are involved in active transactions. Write the pathnames of all of the database files that need to be archived in order to
recover the database from catastrophic failure. If any of the database files have not been accessed during the lifetime of the current log
files, db_archive does not include them in this output.
It is possible that some of the files referenced in the log have since been deleted from the system. In this case, db_archive ignores
them. When db_recover is run, any files referenced in the log that are not present during recovery are assumed to have been deleted and
are not be recovered. Run in verbose mode, listing the checkpoints in the log files as they are reviewed.
DESCRIPTION
A customized version of the Berkeley Database (Berkeley DB) is embedded in the operating system to provide high-performance database sup-
port for critical security files. The DB includes full transactional support and database recovery, using write-ahead logging and check-
pointing to record changes.
The db_archive utility is provided for maintenance of the log files associated with the security database. It writes the pathnames of log
files that are no longer in use (that is, no longer involved in active transactions), to the standard output, one pathname per line. These
log files should be written to backup media to provide for recovery in the case of catastrophic failure (which also requires a snapshot of
the database files), but they may then be deleted from the system to reclaim disk space. You should perform a db_checkpoint -1 before
using db_archive.
The secconfig utility can create a cron job that periodically checks the security log files and deletes those no longer in use, as deter-
mined by db_archive. Be sure to coordinate this with the site backup schedule.
The db_archive utility attaches to one or more of the Berkeley DB shared memory regions. In order to avoid region corruption, it should
always be given the chance to detach and exit gracefully. To cause db_archive to clean up after itself and exit, send it an interrupt sig-
nal (SIGINT).
RETURN VALUES
The db_archive utility exits 0 on success, and >0 if an error occurs.
ENVIRONMENT VARIABLES
If the -h option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home. The home
directory for security is /var/tcb/files.
FILES
/var/tcb/files/auth.db
/var/tcb/files/dblogs/*
RELATED INFORMATION
Commands: db_checkpoint(8), db_dump(8), db_load(8), db_printlog(8), db_recover(8), db_stat(8), secconfig(8) delim off
db_archive(8)