Welcome, Guest. Please Login
 
  HomeHelpSearchLogin FAQ Radified Ghost.Classic Ghost.New Bootable CD Blog  
 
Page Index Toggle Pages: 1
Send Topic Print
Time and Date stamp backup (Read 2281 times)
FromNashville
Dude
*
Offline


I Love Radified!

Posts: 16


Back to top
Time and Date stamp backup
Apr 26th, 2013 at 8:31am
 
Is there a simple way to add the date and time stamp to each incremental backup?  I know I can see the date and time if I look at the files property or the details in explorer, but I would like for the date and time to part of the incremental file's name.
 
 
IP Logged
 

NightOwl
Radministrator
*****
Offline


"I tought I saw a puddy
tat..."

Posts: 5801
Olympia, WA--Puget Sound--USA


Back to top
Re: Time and Date stamp backup
Reply #1 - Apr 26th, 2013 at 10:04am
 
@
FromNashville

So, I'm going to do my *terrible two's* thing.......

Quote:
Is there a simple way to add the date and time stamp to each incremental backup?

        Why?      

What are you trying to accomplish?

I routinely create a sub-directory with the month and day in the title of the directory on which I begin a new backup.  So today is April 26th--the new sub-directory would be *0426*.

And, I actually use the month and day in the backup's name--so the backup file name is labeled *0426*--you could add the year--so *042613*--if you want--but I don't keep backups longer than about 4-6 months--so there's never any real confusion as to which year they are created.
 

____________________________________________________________________________________________

No question is stupid ... but, possibly the answers are Wink !
 
IP Logged
 
FromNashville
Dude
*
Offline


I Love Radified!

Posts: 16


Back to top
Re: Time and Date stamp backup
Reply #2 - Apr 28th, 2013 at 12:33pm
 
I do incremental backup each day.  I have a very large backup disk and the backup is set to run at 1:00 AM so I may have as many as 60 backup copies (two months) on the same folder.

If I want to restore a FILE from a older backup set it would be nice to look at the daily backup file name to find the one I want.  Now I must change the MS explore from list to detail to find the date.  I know it only takes a few clicks to do this but  it would be nice to not have to.
 
 
IP Logged
 
Brian
Demigod
******
Offline



Posts: 6304
NSW, Australia


Back to top
Re: Time and Date stamp backup
Reply #3 - Apr 28th, 2013 at 2:19pm
 
@
FromNashville

I just did some quick tests but couldn't get this batch file to run from Ghost. You can run it manually or scheduled after Ghost has created the image.

Code:
CD /d %~dp0

set hh=%time:~0,2%
if "%time:~0,1%"==" " set hh=0%hh:~1,1%
set timestamp=%time:~0,8%
if @%timestamp:~0,1% == @ set timestamp=0%timestamp:~1,7%
set timestamp=%date:.=%_%timestamp::=%
echo.Timestamp :: %timestamp%

ren fromnashville.iv2i %timestamp%.iv2i


Ghost must be set up so all incremental images are named fromnashville.v2i.

Don't let Ghost Prepend computer name to backup.....

Your Short Date format in Regional settings should be yyyy-MM-dd

Put the batch file in the same folder as the incremental images.


Edit..... I ran my tests manually. It's probably going to be more difficult to do it in a Ghost schedule as Ghost adds numbers after the filename.
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print