Pages: 1
RSS
Automatic Backup with different names, How to setup TheBat so schedular backs up to different files - NOT OVERWRITE
 
I have searched the messages and have not found an answer to this question.  I did find a reference to in back in '08 but said basically it couldn't be done.  After all these years it must be capable by now.

I want to set a auto backup so that the backup file created has the date included in the file name.  This will allow the bat to backup without overwriting the previous backup.

Is this yet possible?

By the way I am still on 4.2.44.2.  I tried to upd ate some time last year but the install screwed up so it couldn't even start.  I was told then to simply edit the registry se ttings.  So instead I simply came back to the last running version i had.

Thanks
David
Edited: David Sigafoos - 08 January 2013 03:34:08
 
I'm not sure about the autobackup feature as I don't use it.
What I've done is creating an event in TB's scheduler that starts a backup, the path for my backup file is D:\Backups\TB\%Date="YYYYMMDD".tbk
The %Date="YYYYMMDD" macro sets the file name 20130108 for 8 Januari 2013.
Back when I configured this, the autobackup feature didn't support macros, but that was supposed to get fixed.
Basically what I did was creating my own autobackup, so I've never looked back for the real thing.
Therefore what I suggest bis that you enter my file name macro as the name for the autobackup file and see whether that works, if not then proceed with my workaround. Back in the early days of the autobackup, it wasn't possible to set it to a different directory, so the backups were created in the mail directory. I had some problems with that too.
If it works as it should with macros in the autobackup file name, then a message stating that would be appreciated by future users looking for an answer. ;-)
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
Thanks for that Roelof.  I have set the autobackup with a filename similar to your post so we will see what happens tonight.  Will of course post back success/failure.

Thanks again
 
Roelof, Just as follow-up using Tools, Scheduler and setting up a backup with a macro similar to what you posted, I used %Date="YYYY-MM-DD".tbk, worked just fine.

Thanks for the great help .. couldn't find anything in the Help.
 
Quote
David Sigafoos wrote:
I used %Date="YYYY-MM-DD".tbk, worked just fine.

That does not work for me at all. Please, how did you set it up?
 
I used . .\%DATE%.tbk
 
Change to %DATE=DDMMYYY%.tbk. Good idea!
 
Quote
David Sigafoos wrote:
Roelof, Just as follow-up using Tools, Scheduler and setting up a backup with a macro similar to what you posted, I used %Date="YYYY-MM-DD".tbk, worked just fine.



Thanks for the great help .. couldn't find anything in the Help.
Quote
Rick G wrote:
Quote
David Sigafoos wrote:

I used %Date="YYYY-MM-DD".tbk, worked just fine.



That does not work for me at all. Please, how did you set it up?
RickG,sorry it didnt work.  Setup basically
1) Tools -> Scheduler
2) click backup every
3) set number of days to 1
4) set Start At to 04:00:00 A
5) clicked Advanced
6) General Tab/ Backup Method
 7) Click to backup file (standard)
 8) browse to the folder i want to save in
 9) then add \%Date="YYYY-MM-DD".tbk to the end of the file path.  My total location is C:\Users\Dsig\Documents\TheBatBackups\%Date="YYYY-MM-DD".tbk
 10) set the rest as you need

This works every morning.  The only think I could ask for is to have the routine automatically delete any backups x-number old.  So for example if set to 10, it would delete the eleventh etc.  Make it a little easier to keep the excess removed.

Hope this helps.  If not please let me know.

Dsig
 
I got it to work with MM-DD-YY.tbk but not the way you have it. It seems to have illegal characters (for windows) in the file name. I will play with it some more. Thanks for the reply
 
That is very odd indeed as i simply copy/pasted the info from theBat.

At least you got something working for you.
 
I finally cracked it



\Autobackup %DATE=YYYY.MM.DD%tbk.tbk
Edited: Michael Ward - 06 October 2024 13:19:13
Pages: 1