Solved

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

Posted on 2011-09-20
6
300 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

757 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

22 Experts available now in Live!

Get 1:1 Help Now