Bash Scripts, to be converted to Ruby Scripts
backup.sh backs up any database on server (without having to define them manually) except information_schema, performance_schema and phpmyadmin. Then it takes a .tgz tar of the entire /var/www folder. Ideally it should take any folder found within /var/www but this functionality is not working in the bash script. It outputs to a specific folder /home/www-admin/backups in a sub directory called /db and /files

metastaging-backup.sh is targeted towards backing up a database specifically called metastaging and a folder specifically called metastaging in /var/www. It outputs to a specific folder in /home/www-admin/backups/dev