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

ruby on rails - Permission denied @ sys_fail2 - (D:/RoR/projects/grp/public/uploads/ -

c++ - nodejs socket.io closes connection before upgrading to websocket -

python - PyQt: Label not showing correct number of length -