Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2011-09-20
6
303 Views
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?

Thanks,
Dave
0
Comment
Question by:Administrator Contact
  • 3
  • 3
6 Comments
 
LVL 13

Expert Comment

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

Author Comment

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

Expert Comment

by:5g6tdcv4
ID: 36576842
What are the drive letters? And are all files at the root of the drive?
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

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
0
 

Author Comment

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

Accepted Solution

by:
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

YOU NEED TO RUN DISKPART MANUALLY AND FIND OUT THE DRIVE # THAT THE BACKUP DRIVES OCCUPY!!
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 data....so 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

parts.txt
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

856 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