tommyeung
06-18-2002, 03:41 AM
i have two computers, called computera,and computerb
computerb is used for development and backup purpose while computera is used for production database, there is a tape drive attached to computerb to perform backup. everyday there is a cron job in computerb to dump the computera database (production database) and backup to tape. thus in the cron job in computerb, i use rsh. also in the cron job i want to redirect the message to computerb (/var/log/backup.log), the follow is my script:
rsh computera tar cvf /dev/rmt/0n computerb:/path/to/backup.dump 1>>/var/log/backup.log 2>&1
could my script work? if not how to archieve my goal?
computerb is used for development and backup purpose while computera is used for production database, there is a tape drive attached to computerb to perform backup. everyday there is a cron job in computerb to dump the computera database (production database) and backup to tape. thus in the cron job in computerb, i use rsh. also in the cron job i want to redirect the message to computerb (/var/log/backup.log), the follow is my script:
rsh computera tar cvf /dev/rmt/0n computerb:/path/to/backup.dump 1>>/var/log/backup.log 2>&1
could my script work? if not how to archieve my goal?