I am in a time crunch so am asking for as much guidance or samples as possible to accomplish the following in a shell script.
On an Ubuntu Edgy Eft server, do:
1. Stop Apache
2. Stop MySQL
3. tgz all files in webroot and date the archive (e.g. webrootbackup03282007.tgz)
4. tgz all MySQL databases and date the archive (e.g. mysqlbackup03282007.sql..tgz)
5. Start MySQL
6. Start Apache
7. Ship the archives to a Windows Server NTFS share
8. Delete the "local" copies of tgz's.
9. Email me a report
(I will then set cron to run the script as necessary...)