Backups

Previous topic - Next topic

bigsofty

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)

Kitty Hello

use a macro. You can get the current date+time as a zip file name using %DATE%.

bigsofty

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)

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard


Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

bigsofty

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)

Moru


bigsofty

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)