Is there an option to back up saved files, i.e., rename the old file code.pb to code.pbk or some such? I just lost a fair amount of work when the hard drive crapped out just as PC was saving the source code. Not tantrum amounts of work, but stuff I'd rather have back.
I can't seem to find anything like this.
Cheers Jon
Backup file option?
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
I'm not sure. It would be no trouble to write a builtin tool to do it, someone may have done so already. But one tidbit that I've found handy from time to time is that a copy of the source for the last program you ran from the ide is in your \PureBasic\Compilers folder under the name PB_Editor_Output.pb - dunno if it would help you or not.
codecaddy keeps numbered backups for you
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
ah? yes, that's true, i stole the numbering scheme from japbe 
i've just added a twist: i keep track of version numbering, and store all backups in a subfolder, thus keeping my working folder clean, but you're right: japbe does it, so if you're using japbe there's little use for codecaddy
(it does include some small other things like reformat, codesync, and numbered builds, but it's not totally complete yet though it works)

i've just added a twist: i keep track of version numbering, and store all backups in a subfolder, thus keeping my working folder clean, but you're right: japbe does it, so if you're using japbe there's little use for codecaddy
(it does include some small other things like reformat, codesync, and numbered builds, but it's not totally complete yet though it works)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )