Radified Community Forums
http://radified.com/cgi-bin/yabb2/YaBB.pl
Rad Community Technical Discussion Boards (Computer Hardware + PC Software) >> Norton Ghost 15, 14, 12, 10, 9, + Norton Save + Restore (NS+R) >> Time and Date stamp backup
http://radified.com/cgi-bin/yabb2/YaBB.pl?num=1366983091

Message started by FromNashville on Apr 26th, 2013 at 8:31am

Title: Time and Date stamp backup
Post by FromNashville on 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.

Title: Re: Time and Date stamp backup
Post by NightOwl on 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.

Title: Re: Time and Date stamp backup
Post by FromNashville on 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.

Title: Re: Time and Date stamp backup
Post by Brian on 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.

Radified Community Forums » Powered by YaBB 2.4!
YaBB © 2000-2009. All Rights Reserved.