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
- login putty username password
- ssh server , login username password
- login mysql take db using mysql dump
- 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
Post a Comment