Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sftp remote backup script

Status
Not open for further replies.

Dsilence

ISP
Jan 31, 2002
4
FI
I have 2 linux red hat servers, one with important stuff and one that's backup, every night 00.05 the backup server takes a ncftpget connection to the other server and backup the important files to that server (then backup server makes also a backup on tape)

Now I would like to increase the security by using (client) SFTP (ssh protocol)instead ncftpget (ftp protocol)

So I'm wondering if anyone can help me out with the script?
I specificly want to know how to make a script that does it automaticly (with cron) I know the connect & get files commands, but I don't know how to make sftp send password when connecting, so the server won't prompt it.

anyone? :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top