BASIC

Author Topic: Backups  (Read 2851 times)

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2580
    • View Profile
Backups
« 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.
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10682
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Backups
« Reply #1 on: 2010-Jan-18 »
use a macro. You can get the current date+time as a zip file name using %DATE%.

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2580
    • View Profile
Re: Backups
« Reply #2 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.
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5006
  • O Rly?
    • View Profile
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1764
    • View Profile
    • Homepage

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5006
  • O Rly?
    • View Profile
Re: Backups
« Reply #5 on: 2010-Jan-18 »
yepp  :booze:
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2580
    • View Profile
Re: Backups
« Reply #6 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! ;)
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1764
    • View Profile
    • Homepage
Re: Backups
« Reply #7 on: 2010-Jan-22 »

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2580
    • View Profile
Re: Backups
« Reply #8 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:
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)