Recover .sch from .kicad_pcb?

I made a simple 4 layer board and had it fabed and it mostly works. While I was waiting on OshPark I decided to make it two layer having safely backed up the .kicad_pcb and gerbers to a zip file. I forgot to back up the .sch and now I could save my self quite a bit of time if I could somehow get the net list back from the pcb at least and redo the schematic. I got rid of some stuff I thought I didn’t need but the prototype proved I did. Is that possible?

I don’t think so…

PS: for future reference - there is a zip button in the KiCAD main starter window… that catches the most important files in an archive :wink:

1 Like

Or even better use a version control system like git.

And of course backup. Most importantly backup on a different device that is not always connected to this device. Even better if this backup device is physically located somewhere else.

In short, no. The netlist is not copied into the PCB.

In theory, with a fully routed PCB, it might be possible to trace all the tracks and pads in the PCB, and re-generate some sort of netlist, which won’t be complete, because the components are not known. Writing and debugging the script would take a while. For a simple board, not worth it.

Much better to get into the habit of not losing old versions…

2 Likes

Joan_Sparky
https://mandrillapp.com/track/click/30243700/forum.kicad.info?p=eyJzIjoib1R6dnFhQlBRNjBsbVF3ZGVJakZBLVJvdnNZIiwidiI6MSwicCI6IntcInVcIjozMDI0MzcwMCxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL2ZvcnVtLmtpY2FkLmluZm9cXFwvdXNlcnNcXFwvam9hbl9zcGFya3lcIixcImlkXCI6XCIyMzAwMzdkMWU4NWU0NjJkOTYwMTFiODhkM2I5YmNhZVwiLFwidXJsX2lkc1wiOltcIjgxOTRkZmM4NDA4OGUzY2E5ZDNiZmQ3MThkOTMwMDg2MmM2MDk1ODNcIl19In0
Regular
June 14

I don’t think so…

PS: for future reference - there is a zip button in the KiCAD main starter
window… that catches the most important files in an archive :wink:


Visit Topic
https://mandrillapp.com/track/click/30243700/forum.kicad.info?p=eyJzIjoiVGQ3Y1VuTjFoeV9ndVV4cElxV1N5bFFYY05BIiwidiI6MSwicCI6IntcInVcIjozMDI0MzcwMCxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL2ZvcnVtLmtpY2FkLmluZm9cXFwvdFxcXC9yZWNvdmVyLXNjaC1mcm9tLWtpY2FkLXBjYlxcXC82NzQwXFxcLzJcIixcImlkXCI6XCIyMzAwMzdkMWU4NWU0NjJkOTYwMTFiODhkM2I5YmNhZVwiLFwidXJsX2lkc1wiOltcIjI1ZjYwMjYzYjkwYzVlY2Q1MGVjY2MxZGI5MmZiMmNhMTgyMTkwMmRcIl19In0
or reply to this email to respond.

To unsubscribe from these emails, click here
https://mandrillapp.com/track/click/30243700/forum.kicad.info?p=eyJzIjoiRng5U0gxLVlQLTFkZXVNX01jTUl2WkU0NVJzIiwidiI6MSwicCI6IntcInVcIjozMDI0MzcwMCxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL2ZvcnVtLmtpY2FkLmluZm9cXFwvZW1haWxcXFwvdW5zdWJzY3JpYmVcXFwvNDcwZjUxN2NmNTljZDYxYjRiMmExZjU2NWZiMDMxMjExNjA1MzMwY2M4Y2U5ZjMyODcxYmVkNjgwMjcxMzUyZVwiLFwiaWRcIjpcIjIzMDAzN2QxZTg1ZTQ2MmQ5NjAxMWI4OGQzYjliY2FlXCIsXCJ1cmxfaWRzXCI6W1wiNTJmYTk0YzAyYTNhZjg2MjJiMTg0MzA4NzQ3Mzc4MjEyYjBkOTZlNlwiXX0ifQ
.

Good to know. I guess I will just remake it from scratch. At least I have
a excel with all the pins I assigned.

I have a github account but I seldom use it. I just use it as a place to share stuff. I don’t really see how it would help to roll back changes unless I would make a new folder a day and clone it. I guess I should read up on it. I was hoping it would be like time capsule on my mac and you could roll back to a date or time. Unfortunately I did the pcb on my pc.

You don’t need a github account to use git.

To use locally, it’s quite simple. In the folder where your project is:

git init

then

git add -A 
git commit -m "Your Message"

If you prefer a GUI, I use “git gui”, in windows it is on the context menu in the File Explorer.
Other tools like SVN etc are pretty similar.

It would be nice if KiCad had some hooks to add external commands like this.

git checkout “hash of commit”
Works only if you commit regularly of course.

And as @bobc already wrote. You don’t need a server. (At least for git. I’m not so sure about svn. You can always work with a local server though.)