automate rcp script

From: Radhika Sambamurti (radhika_narendran@yahoo.com)
Date: Thu Jan 02 2003 - 09:18:44 EST


Hello,

I have to write a scrpt that rcp's daily, the newly created
oracle backup to a second machine (db2).

right now my script does this manually, ie it takes the
filename as the second parameter...

here is the current script:

#!/bin/sh
TARGET=/back01/oracle/fullbackup/hsp1a/
rcp -p $1 hspdb02:$TARGET
echo "copy complete...."

I would like to automate this. The oracle backup file
created has a different name every day, so the scirpt needs
to rcp files created in the last 24 hours.... i know i have
to do an mtime -1...

any ideas how i could do this.

Thanks,
Radhika

=====
It's all a matter of perspective. You can choose your view by choosing where to stand.
--Larry Wall
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:32 EDT