1748142 Members
3730 Online
108758 Solutions
New Discussion юеВ

cp to an offsite archive

 
SOLVED
Go to solution
Mike Blatsos
Advisor

cp to an offsite archive

We currently copy our oracle archive logs to an nfs mount every 5 minutes (very fancy perl script), which takes more resources and time than necessary. I am looking for an easy way to copy files ignoring those that have already been copied before?
2 REPLIES 2
Bill Hassell
Honored Contributor
Solution

Re: cp to an offsite archive

rdist is the command you want. It will only copy the new or changed files. man rdist


Bill Hassell, sysadmin
A. Clay Stephenson
Acclaimed Contributor

Re: cp to an offsite archive

You might also want to take a look at rsync.

http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/rsync-2.6.8/

It's a bit smarter than rdist in that it can also simply send changed blocks rather than the entire file although for archive logs this is not a good fit.
If it ain't broke, I can fix that.