Thursday, February 2, 2017

The Simplest way to Backup DHCP Automatically over the network

Posted By: The Funky Tech Guy - 8:09:00 AM

Share

& Comment



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 location

Solution 1

  1. Create a Batch file with the below code or get a copy HERE and store it on the server e.g c:\scripts
  2. Modify the script by simply changing SERVERNAME to your backup , file server or wherever you want to store the backup.
  3. Create a new scheduled task and configure it as follows

    Automatically Backup DHCP

    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

    Automatically Backup DHCP Over the Network



    Backup DHCP Automatically

    How to Backup DHCP Automatically

    The rest of the settings are defaults
  4. Test by running your scheduled task manually and voila!!
I hope this has been informative for you. If you have any questions do leave them in the comments section below and don’t forget to like and share Winking smile
button_download-script

About The Funky Tech Guy

The Funky Tech Guy is a publication/blog that comprises primarily of articals and how tos relating to Information Technology.I have been in the IT industry since 2001 and can easliy say that IT is my passion. The primary focus of this site is to share some of the knowledge and experiences I've gained.

Copyright © 2013 The Funky Tech Guy ™ is a registered trademark.

Designed by Templateism . Built with Blogger Templates .