Linux shell scripts read and carry out the console commands from a .sh file as though they have been entered directly on the command line.
Shell Script Commands
Create/edit a script file using the VI editor
.vi /home/ontology.sh
Make the shell script executable
.chmod u+x /home/ontology.sh
Run the shell script manually
sh ontology.sh
Run by referencing the script from outside current directory
`../ontology.sh
Examples
Backup script
References
Backup MySQL
- http://stackoverflow.com/questions/19664893/linux-shell-script-for-database-backup
- http://alvinalexander.com/mysql/mysql-database-backup-dump-shell-script-crontab
Use SCP without a password for backups
