I'm attempting to do an automatic backup of an Ubuntu 9.04 server. I have the command to do the backup and it works swimmingly. However, this backup needs to be done weekly and backed up to a shared drive on a Windows 2003 server. I'm assuming I'd need a shell script to do this but I have no idea where to start. The process I'm trying to accomplish is as follows...
- Check to see if the shared drive is mounted
- If it is, move on. If its not, mount it, then move on.
- Perform the backup command (tar -blah blah blah)