P
pfred
Guest
Hi Nigel Paul's presentation was great (if it is the one I'm thinking about). We use the AI Management Daemon (Thanks Progress for doing it - it's fantastic). We are running under Linux FYI. The aiarcdir for us points to a directory on a different local filesystem. We then have a cron job that runs every 15 minutes (as root) looking for files in the aiarcdir. When it finds them there it copies them to a new directory (DIR-B), compresses them and sets their permissions appropriately. # # Move AI files if they exist - run as root # 5,20,35,50 * * * * /home/sysadmin/sh/ai-move A second cron job (running as a non-root user but with ssh keys that allow copying to an offsite location) runs 2 minutes after and using scp copies everything in the DIR-B folder to the offsite location. It does a sum -s at both ends and compares them to make sure the scp is 100% and then deletes the copy in DIR-B since it is now safely somewhere else. # # Copy AI files to OFFSITE LOCATION if they exist # 7,22,37,52 * * * * /home/sysadmin/sh/ai-remcopy If the remote site is not available (vpn is down) they will sit in the DIR-B folder until they are copied and checked. If the link goes down in the middle of a transfer the sum's won't match so it will try again later when the link comes up. Cheers Peter
Continue reading...
Continue reading...