How to implement a 14 day backup cycle

R

R Jones

To all,

I would like to implement a 14 backup cycle using NTBackup. However, the
scheduler does not intuitively support this, or I'm just that dense.

I would like to implement the cycle as such:

Day 1 : Full Backup
Days 2-14 : Differential Backup

and just repeat that cycle, overwriting previous backups. Is there anyway
to do this in NTBackup on Win2000? The Monthly backup options of first,
second, third, fourth and last day of each month don't seem to fit the bill.

Thanks for any help.
Rick
 
P

Pegasus \(MVP\)

R Jones said:
To all,

I would like to implement a 14 backup cycle using NTBackup. However, the
scheduler does not intuitively support this, or I'm just that dense.

I would like to implement the cycle as such:

Day 1 : Full Backup
Days 2-14 : Differential Backup

and just repeat that cycle, overwriting previous backups. Is there anyway
to do this in NTBackup on Win2000? The Monthly backup options of first,
second, third, fourth and last day of each month don't seem to fit the bill.

Thanks for any help.
Rick

Presumably you wish to perform a full backup on a specific day of the
week (e.g. every second Monday), and a differential backup on all other
days. While the Task Scheduler does not provide facilities to do this,
you can easily do it with a batch file:

@echo off
set LogFile=c:\BackupLog\Full.txt
if not exist c:\BackupLog md c:\BackupLog

if not exist %LogFile% goto Full
echo %date% | find /i "Mon" || goto Inc
xcopy /m %LogFile% %temp% | find /i "1 File(s)" && goto Inc

:Full
echo. > %LogFile%
c:\winnt\system32\ntbackup.exe / . . . (your full backup switches)
goto :eof

:Inc
c:\winnt\system32\ntbackup.exe / . . . (your incr. backup switches)

The two-week cycle is enforced by the archive attribute of
%LogFile%: It is set on the first Monday when the full backup
occurs, and reset on the second Monday by xcopy.exe.
c:\BackupLog\FirstWeek.txt.

You can copy & paste the backup switches from the backup tasks
that the backup wizzard created for you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top