Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

backing up by file types in specified folder 1

Status
Not open for further replies.
Jun 2, 2004
24
US
Hi. In my unix world, I can easily define what file extensions I want to backup and from which directories, but I need to do this on a Windows machine.

I have a large project folder containing code, binaries, zip files, test junk, and then documentation pieces.

I want to be able to say from folder A, select all (documentation) files of type (ppt, doc, xls, mpp, vsd, one) and archive them to a drive somewhere.

I do not see the ability to refine the files to backup in the Advanced Backup dialog on Windows XP Pro. I need to avoid backing up all of my large hex files and such since the dir is some 3GB or so.

thanks-

-paul
 
You can write an xcopy script. Say you have .dbf files in c:\program files\app\data, and you want them to go to f:\safedata

Command would be

xcopy /c/e/h c:\progra~1\app\data\*.dbf f:\safedata

If this is a recurring job, I recommend you delete your target directory before you do your backups, so you get a clean target every time

rmdir /q/s f:\safedata
md f:\safedata

Matt J.

Please always take the time to backup any and all data before performing any actions suggested for ANY problem, regardless of how minor a change it might seem. Also test the backup to make sure it is intact.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top