mysql - Automate Putty To Do Daily Task -


i new putty, need guys repeatedly connect linux server using putty everyday connect 1 more linux sever within previous linux server contains database, login mysql , take database up

i want automate process creating bat file on windows 7, able login putty , mysql, console disappears after that

  1. login putty username password
  2. ssh server , login username password
  3. login mysql take db using mysql dump
  4. copy db backup file desktop

thanks in advance

when goal making backup, not need automate putty. can make unix script call mysql , make backup. when script works, can add crontab (unix scheduler), run every day.
need more testing before crontab works well: environment in interactiv session different.

edit: did not answer last part: , 4. copy db backup file desktop

there different ways transporting backup. can have mounted drive, shared directory, or use transport protocol rsync or scp. can not tell fits best in situation.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -