Command line sending of mail attachments ( DB backups)
I'm am not remotely familiar with the linux operating sytem and just need a simple 'cut and paste solution' that will allow me to send .gz files as mail attachments, from the command line.
Recently I moved my website to new hosting company, they are using cpanel and I have set up a couple of commands; the cpanel scheduler runs them for me as required.
1. creates an mysql dump and saves it to folder ( in root of my space ). Works fine.
2. delete the file created above, after 15 mins. Also works fine
What I really want to do is email the .gz to myself before it is deleted, this is were I am stuck.
This is possible ( I believe ) but it is beyond my understanding and ability to write the script/command that will make this happen.
Please make any instructions really simple and clear as I am really new to this.
Any help would be very much appreciated.
There are several Pearl and PHP modules installed on the server and this information is provided below and may be helpful to you (but I certainly to not know anything about this type of stuff).
More info about the server to come.
Last edited by gamorgan; 12-17-2010 at 07:27 AM.