Help - Search - Members - Calendar
Full Version: How to backup up your windows web server.
The Planet Forums > Operating Systems > Microsoft Windows > Windows HOWTOs
Mark Priest
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?
MX-3.com
So where's the script? 2 Weeks later and still nothing?

icon_smile.gif
Mark Priest
sorry. been super busy but i havnt forgotten.
steve248
What a tease! lol.
Mark Priest
I Still havnt forgotten, just not had time!
CornFused
QUOTE (Mark Priest)
I Still havnt forgotten, just not had time!


No time for doing backups! I'm glad I'm not hosted with you!
JHCain
Why not use the built in Windows Backup utility? Do a local backup, then a scheduled task to FTP off-server?

See:
http://forum.ev1servers.net/showthread.php?t=41322

Perhaps oversimplifying,

-Jim
instantnet
Shesh you guys give him a break. Perhaps if you game him $10 at the least he would be more apt to do it quicker.

What if you wish to migrate to a better server? Windows machines dont react well to hardware changes.

This is important since hopefully by the time you need to recover your server you can just upgrade to a better server.

Thanks
Mark Priest
QUOTE (CornFused)
No time for doing backups!  I'm glad I'm not hosted with you!


Urm, no. No time for posting tutorials on here, been too busy looking after my customers.
steve248
QUOTE (instantnet)
Shesh you guys give him a break.  Perhaps if you game him $10 at the least he would be more apt to do it quicker.

What if you wish to migrate to a better server?  Windows machines dont react well to hardware changes.  

This is important since hopefully by the time you need to recover your server you can just upgrade to a better server.

Thanks


It's only that he started and then never got around to finishing, it means people have wasted time waiting for this and like so many other people who say 'I'll finish later' it never ever happens.
instantnet
Go to at rentacoder.com or scriptlance.com and have something custom made then.
steve248
Are you two married or something?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.