Windows XP Community - XPHeads



Registry Mechanic - Free Scan Now

Windows backup: append day of week to filename?

microsoft.public.windowsxp.general


Reply
  #1 (permalink)  
Old 07-03-2008, 04:12 AM
Terry R.
 
Posts: n/a
Re: Windows backup: append day of week to filename?
The date and time was 7/2/2008 9:48 PM, and on a whim, darius pounded
out on the keyboard:

> I want to make a backup with multiple schedules, for each weekday. Is
> there a way to make it automatically append the day of week to the backup
> filename, like backup-MON, backup-TUE, backup-WED, etc. (The backup
> files are overwritten each week, but at any time, I have the backups of
> the last 5 weekdays.)
>
> I guess I could make 5 different backup jobs and give the filename I
> want, but it's a pain. Plus if I need to make changes (add or remove
> folders to the job), I have to go through all 5 jobs.


Hi Darius,

I would think using the /f command line parameter and using some DATE
variables you could accomplish it. Pegasus will probably have what you
need.

--
Terry R.

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-03-2008, 04:48 AM
darius
 
Posts: n/a
Windows backup: append day of week to filename?
I want to make a backup with multiple schedules, for each weekday. Is
there a way to make it automatically append the day of week to the backup
filename, like backup-MON, backup-TUE, backup-WED, etc. (The backup
files are overwritten each week, but at any time, I have the backups of
the last 5 weekdays.)

I guess I could make 5 different backup jobs and give the filename I
want, but it's a pain. Plus if I need to make changes (add or remove
folders to the job), I have to go through all 5 jobs.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-03-2008, 05:41 AM
Pegasus \(MVP\)
 
Posts: n/a
Re: Windows backup: append day of week to filename?

"Terry R." <F1Com@NOSPAMpobox.com> wrote in message
news:u86eEMM3IHA.1420@TK2MSFTNGP06.phx.gbl...
> The date and time was 7/2/2008 9:48 PM, and on a whim, darius pounded out
> on the keyboard:
>
>> I want to make a backup with multiple schedules, for each weekday. Is
>> there a way to make it automatically append the day of week to the backup
>> filename, like backup-MON, backup-TUE, backup-WED, etc. (The backup
>> files are overwritten each week, but at any time, I have the backups of
>> the last 5 weekdays.)
>>
>> I guess I could make 5 different backup jobs and give the filename I
>> want, but it's a pain. Plus if I need to make changes (add or remove
>> folders to the job), I have to go through all 5 jobs.

>
> Hi Darius,
>
> I would think using the /f command line parameter and using some DATE
> variables you could accomplish it. Pegasus will probably have what you
> need.
>
> --
> Terry R.


Since I hear my name mentioned, I suppose I have to reply!

To the OP: What is your current backup command?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-03-2008, 02:57 PM
darius
 
Posts: n/a
Re: Windows backup: append day of week to filename?
"Pegasus \(MVP\)" <I.can@fly.com.oz> wrote in
news:eGPIC#M3IHA.4284@TK2MSFTNGP04.phx.gbl...

>
> Since I hear my name mentioned, I suppose I have to reply!
>
> To the OP: What is your current backup command?
>


Hi

I'm just using the GUI. (system tools / backup)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-03-2008, 03:19 PM
Pegasus \(MVP\)
 
Posts: n/a
Re: Windows backup: append day of week to filename?

"darius" <noone@here.invalid> wrote in message
news:28984326860.8554256396.39632@msnews.microsoft .com...
> "Pegasus \(MVP\)" <I.can@fly.com.oz> wrote in
> news:eGPIC#M3IHA.4284@TK2MSFTNGP04.phx.gbl...
>
>>
>> Since I hear my name mentioned, I suppose I have to reply!
>>
>> To the OP: What is your current backup command?
>>

>
> Hi
>
> I'm just using the GUI. (system tools / backup)


If you create a new backup run with the GUI then you have to
type the day of the week when prompted for a destination file
name.

If you get the GUI to schedule the backup run for the various
days of the week then you need to modify the backup task
in the Control Panel / Task Scheduler. A good starting point
would be to post the command line you see under the properties
of that task.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-04-2008, 10:05 PM
darius
 
Posts: n/a
Re: Windows backup: append day of week to filename?
"Pegasus \(MVP\)" <I.can@fly.com.oz> wrote in
news:OfWdABS3IHA.784@TK2MSFTNGP04.phx.gbl...

>
> If you get the GUI to schedule the backup run for the various
> days of the week then you need to modify the backup task
> in the Control Panel / Task Scheduler. A good starting point
> would be to post the command line you see under the properties
> of that task.
>


Thanks. I think I figured it out. For those interested:

1) setup your backup job and schedule it using the GUI per usual.

2) go to control panel / scheduled tasks and double click on the backup
task you created.

3) Copy the Run field. It should be something like
c:\windows\system32\ntbackup.exe followed by long command line arguments.

4) create a file using notepad and save it somewhere as "backup job.cmd"
Substitute 'backup job' with whatever name you like.

5) add this as first line

set dotw=%date:~0,3%

What this does is set dotw to the first 3 letters of the date variable.
This assumes your date format starts with the day of the week. If not,
you need to play with this. Run cmd and type

echo %date%

and

echo %date:~0,3%

to see what you get

6) paste the line you copied in step 3) on next line

7) edit the line you just pasted so that the part that says

/f "something.bkf"

become

/f "something-%dotw%.bkf"

8) Change the Run field in Step 3) so it points to the .cmd file you just
created. (use the browse button.)

Voila
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-04-2008, 10:17 PM
Pegasus \(MVP\)
 
Posts: n/a
Re: Windows backup: append day of week to filename?

"darius" <noone@here.invalid> wrote in message
news:58687825102.8554256396.39633@msnews.microsoft .com...
> "Pegasus \(MVP\)" <I.can@fly.com.oz> wrote in
> news:OfWdABS3IHA.784@TK2MSFTNGP04.phx.gbl...
>
>>
>> If you get the GUI to schedule the backup run for the various
>> days of the week then you need to modify the backup task
>> in the Control Panel / Task Scheduler. A good starting point
>> would be to post the command line you see under the properties
>> of that task.
>>

>
> Thanks. I think I figured it out. For those interested:
>
> 1) setup your backup job and schedule it using the GUI per usual.
>
> 2) go to control panel / scheduled tasks and double click on the backup
> task you created.
>
> 3) Copy the Run field. It should be something like
> c:\windows\system32\ntbackup.exe followed by long command line arguments.
>
> 4) create a file using notepad and save it somewhere as "backup job.cmd"
> Substitute 'backup job' with whatever name you like.
>
> 5) add this as first line
>
> set dotw=%date:~0,3%
>
> What this does is set dotw to the first 3 letters of the date variable.
> This assumes your date format starts with the day of the week. If not,
> you need to play with this. Run cmd and type
>
> echo %date%
>
> and
>
> echo %date:~0,3%
>
> to see what you get
>
> 6) paste the line you copied in step 3) on next line
>
> 7) edit the line you just pasted so that the part that says
>
> /f "something.bkf"
>
> become
>
> /f "something-%dotw%.bkf"
>
> 8) Change the Run field in Step 3) so it points to the .cmd file you just
> created. (use the browse button.)
>
> Voila


Well done! (This is actually a bit of an FAQ)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

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



All times are GMT. The time now is 02:37 AM.


Registry Mechanic - Free Scan Now
Driver Scanner 2009 - Free Scan Now




Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74