|
-
Does anyone has a script to copy the archive log from primary site to standby site? could you send me?
or help me to fix my script:
if [ ! -a $AL1/$csid/.rcp.tim ] ; then
touch $AL1/$csid/.rcp.tim
fi
for F in `find $AL1/$csid -type f -newer $AL1/$csid/.rcp.tim -name 'arch*'|sort`
do
rcp $F $remote:$AL1/$csid/
cp -p $F $AL1/$csid/.rcp.tim
done
--- I use the dummy file, .rcp.tim as a milestone to tracking the latest "time" which file been copies. the problem is it doesnot work correctly when 2 log files created at the same mininute- it only copy one.
thanks in advance
Jim
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|