views:

235

answers:

0

Hi, i want to automate the backup process in my system. the existing procedure is, there will be a log file in SERVER1, every friday i need to move that log file to SERVER2 for backup.

currently we were using PSFTP(secure FTP) to move the files from one server to another server. and we have to use SFTP even in the new process.

what is the best way to automate this process? 1.like have a batch file where i can write all the commands and plan it to execute it on every Friday 2. have a Java program that can do this?

Or is there any way we can write a batch script which can invoke Putty PSFTP and move the files between the servers?

Both the servers are AIX servers.