Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > NTBackup - save files based on dates relative to system date

Reply
Thread Tools Display Modes

NTBackup - save files based on dates relative to system date

 
 
Alex Lawnmower
Guest
Posts: n/a

 
      02-14-2006
Hi,

I have a folder on a drive where I copy twice-daily versions of a software
project. So each day I have two copies of the project.

Now I would like to store to tape the most recent versions of the project.
So in fact my selection would be based on a date relative to the system
date.
Example : all the copies made in the last two months.

I would like to do this on a daily basis with a scheduled task using
unattended NTBackup with a bks fileset.
Is there a way - in the bks file - to specify a selection based on dates ?
Or is there another way to specify a certain number of the most recent files
?

TIA

Alex


 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      02-14-2006

"Alex Lawnmower" <> wrote in message
news:43f1a890$0$18312$...
> Hi,
>
> I have a folder on a drive where I copy twice-daily versions of a software
> project. So each day I have two copies of the project.
>
> Now I would like to store to tape the most recent versions of the project.
> So in fact my selection would be based on a date relative to the system
> date.
> Example : all the copies made in the last two months.
>
> I would like to do this on a daily basis with a scheduled task using
> unattended NTBackup with a bks fileset.
> Is there a way - in the bks file - to specify a selection based on dates ?
> Or is there another way to specify a certain number of the most recent

files
> ?
>
> TIA
>
> Alex


Use xxcopy.exe (downloadable from various sites) or robocopy.exe
(Windows Resource Kit) to perform this three-step operation:
1. Copy all files made in the last two months to a holding area.
2. Back up the holding area to tape.
3. Delete the files from the holding area.


 
Reply With Quote
 
Alex Lawnmower
Guest
Posts: n/a

 
      02-15-2006
Thanks.
I understand the technique but it is not feasible because I don't have
enough space on my disk to create such a large holding area.
(I'm backing up programme sources plus data).

I was thinking of using vbscript to create the bks file on the fly just
before the backup started.
The script could run through the folder where the copies are and create a
temp file with the file paths and names, sorted on the date in descending
order.
Then loop read through the temp file and take the first 20 entries and add
them into a bks file.
If that is my only option then I will post a message to a vbs newsgroup.

That is if nobody here has any better ideas.

Thanks for your help.

Alex




"Pegasus (MVP)" <> a écrit dans le message de news:
...
>
> "Alex Lawnmower" <> wrote in message
> news:43f1a890$0$18312$...
>> Hi,
>>
>> I have a folder on a drive where I copy twice-daily versions of a
>> software
>> project. So each day I have two copies of the project.
>>
>> Now I would like to store to tape the most recent versions of the
>> project.
>> So in fact my selection would be based on a date relative to the system
>> date.
>> Example : all the copies made in the last two months.
>>
>> I would like to do this on a daily basis with a scheduled task using
>> unattended NTBackup with a bks fileset.
>> Is there a way - in the bks file - to specify a selection based on dates
>> ?
>> Or is there another way to specify a certain number of the most recent

> files
>> ?
>>
>> TIA
>>
>> Alex

>
> Use xxcopy.exe (downloadable from various sites) or robocopy.exe
> (Windows Resource Kit) to perform this three-step operation:
> 1. Copy all files made in the last two months to a holding area.
> 2. Back up the holding area to tape.
> 3. Delete the files from the holding area.
>
>



 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      02-15-2006
Have you tried costing your time in order to find a solution
in comparison with buying a larger disk? Disk space is
ridiculously cheap these days!

You can still use my suggestion, with a twist: Instead of
***copying*** the most recent files to the holding area,
you ***move*** them. On completion of the backup
process, you move them back to where they came from.


"Alex Lawnmower" <> wrote in message
news:43f2f559$0$19687$...
> Thanks.
> I understand the technique but it is not feasible because I don't have
> enough space on my disk to create such a large holding area.
> (I'm backing up programme sources plus data).
>
> I was thinking of using vbscript to create the bks file on the fly just
> before the backup started.
> The script could run through the folder where the copies are and create a
> temp file with the file paths and names, sorted on the date in descending
> order.
> Then loop read through the temp file and take the first 20 entries and add
> them into a bks file.
> If that is my only option then I will post a message to a vbs newsgroup.
>
> That is if nobody here has any better ideas.
>
> Thanks for your help.
>
> Alex
>
>
>
>
> "Pegasus (MVP)" <> a écrit dans le message de news:
> ...
> >
> > "Alex Lawnmower" <> wrote in message
> > news:43f1a890$0$18312$...
> >> Hi,
> >>
> >> I have a folder on a drive where I copy twice-daily versions of a
> >> software
> >> project. So each day I have two copies of the project.
> >>
> >> Now I would like to store to tape the most recent versions of the
> >> project.
> >> So in fact my selection would be based on a date relative to the system
> >> date.
> >> Example : all the copies made in the last two months.
> >>
> >> I would like to do this on a daily basis with a scheduled task using
> >> unattended NTBackup with a bks fileset.
> >> Is there a way - in the bks file - to specify a selection based on

dates
> >> ?
> >> Or is there another way to specify a certain number of the most recent

> > files
> >> ?
> >>
> >> TIA
> >>
> >> Alex

> >
> > Use xxcopy.exe (downloadable from various sites) or robocopy.exe
> > (Windows Resource Kit) to perform this three-step operation:
> > 1. Copy all files made in the last two months to a holding area.
> > 2. Back up the holding area to tape.
> > 3. Delete the files from the holding area.
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ntuser.dat locked by the system process Andre Windows Vista General Discussion 3 02-03-2010 08:12 PM
Re: cannot save or run downloaded files Bill Windows Vista General Discussion 1 10-29-2009 01:43 AM
Please Help! 12pm & 48 Deadline Price for Trial and Several Questi DavienC Windows 64 Bit 30 12-11-2005 08:20 AM
NTBackup - Windows 2003 Server - System State - Event ID: 8012 MarkD Windows Server 7 10-27-2005 08:04 AM
Need help Comparing File Date with System Date Nuno Windows Server 4 09-11-2004 06:40 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59