Hi All,
Firstly, I have to thank Twooley for his excellent help and support who actually wrote the original script here, I have just tweeked it.
OK, this script will back your windows web server, it is designed to back up MySQL databases, php.ini files, and all mail settings and emails if using MailEnable. It will then FTP these details to another server / computer.
Firstly. You will require winzip FULL VERSION to be installed on your machine, with the command line tool. its only $29.
WINZIP
Order & Download WinZip here.
Download the command line addon here
OK, if you are using Mailenable you will require the MEPURGE.EXE file and aslo the MEBACKUP.EXE file
When you have downloaded the files and unzipped them, make sure you install them in your "program files/mailenable/bin/" folder.
It's usefull to read the readme details for each of these exe files, they are fairly basic.
MEPURGE.EXE README
MEBACKUP.EXE README
Now, before we can run these scripts from the command line they need to be installed into windows as Enviroment Variables, there is a great full tutotial on this here but i will explain quickly how this is done and why.
When this script or others execute through the command line (which you can access by going to "start > run > type cmd > press enter") you may get an error such as "....." is not recognised as an internal or external command.... You will get this error if you type MEBACKUP at the command prompt before we install it as an Environment Variable.
To add a variable follow this.
1. Click "start"
2. Right-click on "My Computer" to select Properties.
3. Click the "Advanced" tab.
4. Click the "Environment Variable" button.
5. Scroll down the "System variables" list to the "Path" variable.
6. Double click on "Path"
7. Press the "End" key
8. Type (beginning with a semicolon separator) ;c:thepathtothefolderthescriptisin
9. Click "OK"
10. Click "OK" to close the System Properties window.
So for example, when you've installed winzip you will need to add the variable for the command line tool, you would enter ;C:Program FilesWinZip we dont need to add the filename itself just the path to the folder its in.
OK, i've got to go to work now, i'll finish this tutorial later tonight?