Windows Backup Files/Folders to Date Specific File
Software on Friday, April 13th, 2007
How to use Windows Backup/Restore Wizard to backup to date specific folder/filename?
Here are the steps:
1. Create a backup scheme using Windows Backup and Restore wizard. The scheme file will end with *.bks and store under
“C:\WINDOWS\system32\ntbackup.exe backup “@C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\”
2. Download DOFF utility from http://www.jfitz.com/dos/index.html#DOFF. We need this to output the date/time value to our backup file.
3. Create a batch file with the following text:
@echo off
for /f “tokens=1-5 delims=/ ” %%a in (’doff yyyy/mm/dd/hh/mi’) do (
set yyyy=%%a
set dd=%%b
set mm=%%c
set hh=%%d
set mi=%%e)
md f:\%yyyy%%mm%%dd%%hh%%mi%\
C:\WINDOWS\system32\ntbackup.exe backup “@C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\dailybackup.bks” /n “%yyyy%%mm%%dd%%hh%%mi%.bkf created %mm%/%dd%/%yyyy% at %hh%:%mi% ” /d “Set created %mm%/%dd%/%yyyy% at %hh%:%mi% ” /v:yes /r:no /rs:no /hc:off /m normal /j “dailybackup” /l:s /f “f:\%yyyy%%mm%%dd%%hh%%mi%\dailybackup.bkf”
Basically what the batch file does is take year/month/day/hour/minute value from DOFF and assign to variable a/b/c/d/e/f, then make a directory with the date/time as folder name, then call Windows Backup wizard to backup the actual data to the newly created date/time folder.
4. For repeated scheduled backup, you can call the batch file to run at specific date/time by using Windows Scheduler.
Popularity: 11% [?]
Add to del.icio.us
Digg it
Fark it!
Related Articles
- Play .OGG sound files from Wikipedia.org in Microsoft Media Player
- Use Windows Vista Upgrade Advisor to Check Your System
- Strange Random Acer Notebook Beep Sound
- Use USB Thumbdrive as Windows Virtual Memory?
- Migrating from Windown XP to Windows Vista?
Latest Articles
- Who Design Nuffnang Site?
- Sample Letter To Terminate Your Slow Streamyx Account
- Malaysia KLSE IPO Listing
- G310M vs G330m
- Letter to Employees
- Reinvest-Key to Success?
- Water Jelly Experiment
- Sixthseal Coca Steamboat Set Meal Giveaway
- Not Your Average Super Hero
- Fishing My Way To Made Of Honor