Schedule format of drives to use with Windows Server 2008r2 Backup

Posted on 2011-09-20
Last Modified: 2012-05-12
I am trying to shcedule formating removable drives for backups using Windows Server 2008 R2 Backup.  I have all the removable hard drives inventoried, but when the drive is replaced each week it just adds incrementals.  Ulimately we are trying to do a full backup and then incrementals each week.  From what I can see if a newly formatted (for back up) drive is put in the server then the backup will be a full backup, hence why I am thinking a format is needed.  Is there an automated way to do this?

Question by:Administrator Contact
  • 3
  • 3
LVL 13

Expert Comment

ID: 36574167
Do you just want to delete the backups from the removable drive? That would be easier (and safer) to script

Author Comment

by:Administrator Contact
ID: 36576830
sure that would work!
LVL 13

Expert Comment

ID: 36576842
What are the drive letters? And are all files at the root of the drive?
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.


Author Comment

by:Administrator Contact
ID: 36576887
there is no drive letter on the drives.  they are dedicated removable drives for the backup and formatted by the backup program.  We have 4 drives, I had to insert each one and inventory them for the backup to use them.  this works fine, but it is just adding incrementals where I would like to do a full once a week.  not sure that even erasing or formatting will fix this.  There just seems so little options that can be set

Author Comment

by:Administrator Contact
ID: 36576902
oh the files are not root files.  basically data in various folders including exchange database files.
LVL 13

Accepted Solution

5g6tdcv4 earned 500 total points
ID: 36592640
okay so this is using diskpart...the code needs to be saved as part.bat , and the parts.txt file needs to be in the same directory as the part.bat file
Just use task scheduler to have part.bat run prior to backup running

and then edit parts.txt to reflect the correct drive.
so from a command prompt type "diskpart" and then "list disk"
This will show a list of all disks in computer, and whatever the number is for the backup disk you need to edit the first line in parts.txt to reflect that.
this script will destroy be careful
if you do not want a drive letter set to the drive delete the "assign" at the end of parts.txt
diskpart < parts.txt
rem format c: /q /y

Open in new window


Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now