Linux Operating System (MOSC)

MOSC Banner

scp

edited Oct 22, 2012 9:43PM in Linux Operating System (MOSC) 6 commentsAnswered ✓
  Dear All,
  After taking backup i want to copy backup file to another linux box (as an extra caution), using scp is fine..but trying to write script to this task i need to pass the destination server password within the scrip..
example:
scp -r mybackupfile myserverip:/directory password

Is that possible?
if not how to achieve this goal (copy the file to another server within a script)

 Regards,
 S.K

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center