Revision backups

Discussion in 'Basic4ppc Wishlist' started by LineCutter, Jun 2, 2007.

  1. LineCutter

    LineCutter Active Member Licensed User

    With the autosave feature (& without it too) it's quite easy to write a chunk of code, test it & decide you wanted to go in a different direction... but you forgot to save a version of the file before the branch.

    It would be nice to have auto renaming of the current .sbp file (adding to date to the filename?) to provide auto-backups. Some kind of backup directory & housekeeping functions for number/age of backup files might be nice, but I'd be prepared to tidy up myself if these simply triggered a warning msgbox.
     
  2. Cableguy

    Cableguy Expert Licensed User

    Yes I tend to agree that it would be usefull if atleat the currently in use file would be backed up during its editing time.
    What i mean is that some time I stop programing when i reach a surtain run capability, and the resume coding... At that time if any of my current coding errors,and since some features demand previous save, i'm stuck with an erroing app.
    My sugestion would go in to making auto-save actually auto-backup, and only when we closed the file or finished currrent coding session, prompt to save/update the sbp file...
     
  3. bdiscount

    bdiscount Active Member Licensed User

    I think that this would take a lot of time as I run as I am coding.
     
  4. Cableguy

    Cableguy Expert Licensed User

    There would be no noticeable loss of time as normally we have the auto-save feature on, but imagine an app tha has 10 of 20 subs, you tned to go by stages and do specific event driven subs before any "calculations" subs, at least I do....So if after all the event sub were done if you had an error in a "calculations" sub that you just couldn't see", a backup file would be of interest in order to restart Exactly from where you were, and re-think the troubling sub...
    I've had ocasions when it was easier to me to just restart the hole project because I just didn't know anymore what subs worked and were could be my eror...If only I had Backed up that time....Of course we can alway do our own back-up before re-opening a sbp file, if we remember to...
     
  5. bdiscount

    bdiscount Active Member Licensed User

    The idea would be to saveas before testing new code if ok then saveas original. Otherwise you need multi bak files. To make a bak files you have to rename the old and save the new, which as I said would take time.
     
  6. LineCutter

    LineCutter Active Member Licensed User

    My view:
    On running the working program you have autosave set to on & save the current project over itself.
    Changing this behaviour to autosave the current project under a different file name should take the same time, but will use disc space. This could be tidied up/prompted for at the close of the editor.

    With this "autosave as backup" as an option, everyone should be happy.:cool:
     
  7. bdiscount

    bdiscount Active Member Licensed User

    Linecutter has a good method. it would use a lot of dick space but would be retrievable. I do save as if i plan a diff route.
     
  8. LineCutter

    LineCutter Active Member Licensed User

    An option to keep n autosaves in total, where n is user configurable, would solve the problem. 25-50 would cover the sort of slip ups I've created for myself.
    PMSL :)
     
  9. bdiscount

    bdiscount Active Member Licensed User

    sorry about the misspelling. It would have to read in sb1 or sb2 etc.
     
  10. LineCutter

    LineCutter Active Member Licensed User

    No need to apologize. I knew it was a mistype, but when I managed to stop laughing I couldn't help but point it out.
     
  11. Scubaticus

    Scubaticus Active Member Licensed User

    Linecutters idea :sign0142: is great. The first Sub being called in my sources is now BackupSrc which uses filecopy to create a copy every time I run the app

    This creates a lot of copies but I just wasn't into adding a controlfile for limiting the amount of copies (every x minutes or so)

    Scub
     
  12. Cableguy

    Cableguy Expert Licensed User

    A very nice Idea...
    One could even write an "auto-backup" app and shell it instead of having a complete sub...
     
  13. Scubaticus

    Scubaticus Active Member Licensed User

    I'm pressing F5 all the time in the "Open Source" section, but nothing pops-up ;)
    I have a slight feeling such an app is around ..... and well, if not I could start it.

    Participants?

    Scub.
     
  14. dzt

    dzt Active Member Licensed User

    Hi,

    I'm not going to start it but I can set up some specs.

    Maintain a folder List, in which it looks periodicaly (timer) if an .sbp file has different size than previous and if has it will make a copy adding a DateTime stamp, to a specified folder.

    This utility should remain hidden in SystemTray (see dzSpy)
     
  15. Cableguy

    Cableguy Expert Licensed User

    i'm up for it
     
Loading...