REM ============================================================================== REM Title: Windows NTBackup Scripting with File Renaming REM Description: Automate a backup with NTBackup and name file per the date REM Author: REM ============================================================================== @echo off cls REM Sets date :: date routine follows for /F "tokens=1-3 delims=/ " %%i in ('date /t') do ( set Month=%%i set Day=%%j set Year=%%k ) REM What to backup Set BList="C:\My Documents" REM What to call the backup and where to place it Set BFile=C:\backups\%Year%%Month%%Day%_full_backup_mydocs.bkf REM Sets comment on backup file for reference in NTBackup Set BComment=My Documents -- Full backup REM This is the backup script, run in batch mode. Schedule it to run periodically REM whenever you want via Windows Scheduler or other scheduling mechanism NTBACKUP.EXE Backup %BList% /d "%BComment%" /l:F /F "%BFile%" /V:YES /M Normal Set BList= Set BFile= Set BComment= REM ========================================================================== REM Created with SAPIEN Technologies PrimalSCRIPT(TM) - http://www.sapien.com