As most of you know, and probably the reason why you are here, is because Windows Server doesn’t have a builtin, automated dhcp backups solution to backup the DHCP Server database over the network.
However, did you know that by default DHCP does already backup the database automatically every 60 minutes? Only problem is it does it locally to C:\Windows\System32\dhcp\backup . Thats not going to help if anything happens to the server.
The Problem
You want to be able to do automatic DHCP backups to your backup server or any other networked locationSolution 1
- Create a Batch file with the below code or get a copy HERE and store it on the server e.g c:\scripts
- Modify the script by simply changing SERVERNAME to your backup , file server or wherever you want to store the backup.
- Create a new scheduled task and configure it as follows
I’ve set mine schedule to create backups every 2 hours for 8 hours starting at 8am but you can do it once a day depending on your needs. Mine is 20MB small so you don't have to worry about space issues. The script also creates the destination folder based on the current date and time e.g DHCP_20170202_1738
The rest of the settings are defaults
- Test by running your scheduled task manually and voila!!
1 comments :
This is a greaat blog
Post a Comment