Operating System - HP-UX
1748205 Members
4900 Online
108759 Solutions
New Discussion

Re: FTP Script for Backups in Bourne Shell - Script

 
SOLVED
Go to solution
James R. Ferguson
Acclaimed Contributor

Re: FTP Script for Backups in Bourne Shell - Script

Hi Laurie:

The question of the /etc/hosts.equiv and $HOME/.rhosts files has already been answered above, so:

Your crontab should look something like:

00 04 * * * the_script

By default, if you do not redirect stdout and stderr, any generated standard output or standard error will be mailed to the user.

Be sure, too, to include any environmental variables you need in your script before "cron"ing it.

...JRF...
Laurie A. Krumrey
Regular Advisor

Re: FTP Script for Backups in Bourne Shell - Script

Hi All,

I can get the command to work only for one
file. When I try to run this for all the
files with a wildcard I get this error for
each file:

usage: rcp [-p] [ -S size ] [ -R size ] f1 f2; or: rcp [-rp] [ -S size ] [ -R sy
./sybase_backup[10]: /db01/syb115/backup/DBSpscbbk1.gz: Execute permission denied

Also when I run the rcp -p command for one
file from the shell, it does NOT keep the
same file permissions and owner and group.
It does this:
rw------- 1 root sys 12242402 May 14 21:41 laurie

When it should leave the permissions to the
orginial file:

-rw------- 1 syb115 syb115 460911 May 14 21:00 masterbk1.gz

Anyway clues what I am doing wrong?

Laurie


Happiness is a choice