GLBasic forum

Feature request => IDE/Syntax => Topic started by: bigsofty on 2010-Jan-18

Title: Backups
Post by: bigsofty on 2010-Jan-18
Automated backups would be a nice feature?

A "backup" dir would be created in the source dir for backups.

There would be options added to the project settings.

1) Amount of backups

2) Automated backups (e.g. "every 30 minutes")

3) Backup on compile

4) Backup on save

Only modified files would be backed up.

Backups would have a sequential number added to there filename ("myfile.gbas.001", "myfile.gbas.002", etc...) 


Not essential but maybe an addition if you have some spare time Gernot (Does that ever happen?  :D)

Thank you.
Title: Re: Backups
Post by: Kitty Hello on 2010-Jan-18
use a macro. You can get the current date+time as a zip file name using %DATE%.
Title: Re: Backups
Post by: bigsofty on 2010-Jan-18
I could but I was trying to avoid using batch files because unless your backup procedure is painfully simple, batch files simple are not up to it. Sequential file naming, modification checking, selective deletion etc.


For example, 1 scenario...

Max 4 backups allowed.

"myfile.gbas.001", "myfile.gbas.002", "myfile.gbas.003", "myfile.gbas.004"

should become...

"myfile.gbas.005", "myfile.gbas.002", "myfile.gbas.003", "myfile.gbas.004"

...if another compile is made.
Title: Re: Backups
Post by: Schranz0r on 2010-Jan-18
http://www.glbasic.com/forum/index.php?topic=3236.0
Title: Re: Backups
Post by: Moru on 2010-Jan-18
Or this: http://www.glbasic.com/forum/index.php?topic=2697.msg19991#msg19991
:-)
Title: Re: Backups
Post by: Schranz0r on 2010-Jan-18
yepp  :booze:
Title: Re: Backups
Post by: bigsofty on 2010-Jan-22
Both very good suggestions but for basic backups I currently use "Syncback" (Great free scheduled backup util BTW).

What I was really requesting an incremental, modified source file, backup on compile. This basically means the IDE keeps a list of modified files, recorded after every compile. All done in the background.

I use this in Delphi, I usually set up a ridiculous amount of backups, say 100. This saves a couple of days changes, allowing me to easily undo changes from a few days back. Its saved my bacon a few times. Its like the (stupid! :P)poor mans SVN.

I could use actual SVN but its slow on my set-up, not really integrated into the IDE and simply an overkill for me as a single programmer. I also use GLBasic on a USB key, which means using SVN server very difficult.

If this request is a bit too specific to my personal needs, then no worries, it was just a "Would like to see but can happily live without" kind of suggestions! ;)
Title: Re: Backups
Post by: Moru on 2010-Jan-22
This is for you, Bigsofty: http://www.glbasic.com/forum/index.php?topic=4098

:-)
Title: Re: Backups
Post by: bigsofty on 2010-Jan-23
LOL, the DOS Batch programming skills are strong in this one!  :nw:

Very nice Moru, this will do nicely, thank you!  :good: