Backup file option?

Everything else that doesn't fall into one of the other PB categories.
jonljacobi
User
User
Posts: 67
Joined: Mon Jan 16, 2006 10:12 pm

Backup file option?

Post by jonljacobi »

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
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

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.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

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... )
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

blueznl wrote:codecaddy keeps numbered backups for you
So does jaPBe (both PB3.9x abd PB4.00 versions).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

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)
( 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... )
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

In jaPBe V3, you can also specify a backup directory (it was a user request).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply