Backup file naming

Bug #1500570 reported by xzcvczx
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
KiCad
Expired
Wishlist

Bug Description

Currently backup files are all named completely different based on the source file

.sch -> .bak
.dcm -> .bck
.kicad_pcb -> .kicad_pcb-bak

to make it more clear which file is a backup of which should there not be a common suffix, this would also make it safer and easier to add to .gitignore than it is currently,

Related branches

Revision history for this message
Artsiom Shchatsko (cioma) wrote :

I'd suggest just adding ".bak" to a full file name, e.g.:

.sch -> .sch.bak
.dcm -> .dcm.bak
.kicad_pcb -> .kicad_pcb.bak
etc

Changed in kicad:
importance: Undecided → Wishlist
Stefan (stol)
Changed in kicad:
assignee: nobody → Stefan (stol)
Revision history for this message
Stefan (stol) wrote :

This patch add to the files, .sch, .lib, .dcm and .kicad_pcb the suffix .bak as backups

It will also convert the "old" file format names into new file format (if they exist), for example,
If it founds a test.kicad_pcb-bak file this patch will rename it into test.kicad_pcb.bak

The patch will also ask the user if the user want to "recover" from test.kicad_pcb.bak if the test.kicad_pcb is missing

bzr push lp:~stol/kicad/bug1500570
Using default stacking branch /+branch-id/324654 at chroot-82379408:///~stol/kicad/
Created new stacked branch referring to /+branch-id/324654.

Revision history for this message
Hildo Guillardi Júnior (hildogjr) wrote :

I know that this issue not affect directly the users but, standardization could help future issues to be solved and even the people that develop in Python using the Pcbnew library / file format language.
I agree with just add `.bak `at the end to all files.

Revision history for this message
Jeff Young (jeyjey) wrote :
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

KiCad bug tracker has moved to Gitlab. This report is now available here: https://gitlab.com/kicad/code/kicad/-/issues/1993

Changed in kicad:
status: New → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.