1 (edited by tiz.meneghe 2023-03-27 19:59:19)

Topic: The backup overwrites the original file!

Hello,

Sometimes I wondered if I made intermediate saves without realizing it...
Instead I realized that having the backup scheduled (5min.), This overwrites the original one, losing it inexorably!
Does this also apply to any of you or am I the only one who has automatic backup turned on and this happens?

For designers:
The periodic backup must be performed by creating a file (bak) of the type: filename.bak or even better: filename.bak1, filename.bak2...

With current software there is the error that if you are working and take a break, or realize the change is incorrect, exiting the project is a big mistake because the original project has been overwritten by the backup! losing it!
The only option is to do several "undo" to go back to the original or intermediate point before exiting, and this is not always possible!

Second:
By protecting the file in "read only", any operation on the file is blocked, even the "copy lock" useful for copying to other projects...
Instead it should be possible to work and ONLY at the time of saving there is the overwrite block.
A bit like it happens in the elements!

or am I wrong?

best regards.

2 (edited by rvamerongen 2023-03-27 19:20:00)

Re: The backup overwrites the original file!

Yesterday I did wrote about this; but started from a different point of view.
https://qelectrotech.org/forum/viewtopi … 932#p17932 item 1
and
https://qelectrotech.org/forum/viewtopi … 952#p17952

Simply said, the Backup function has nothing to do with a BackUp.

Please add your opinion maybe there will be a change.

QElectroTech V 0.100.0-dev - iMac macOS Monterey 12.6.3 - MacMini macOS Ventura

Re: The backup overwrites the original file!

personally for my projects I deactivate automatic saving..
I use another method I open the last project year/ month/day_my_project.qet
example :2022-7-23_my_very_important_project.qet
and before working on it if I make big changes I save it under the same name but on the current date... all guys should think about it...

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: The backup overwrites the original file!

Hi Laurent,


See Lorenzo, I work with both schematic design and PCB design.
The backup is NEVER performed on the same original file!
Backup is a VERY important feature if you use these cads.
Because you can hope to recover the work done in minutes (5-10min.) if a software, hardware or energy crash should happen...
You can NOT create an alias file every 5-10min., especially when routing a schematic or laying out traces in a PCB because this would lead to chaos in the archive.
After major changes, I already create copies!
Faster way, I take the file manager and ask for the duplicate so it creates me: Copy (1) filename.xxx, next will be Copy (2) filename.xxx etc...
But this is done when you are at a precise point and you save the work done up to there.
This has nothing to do with the concept of backup.
PCB CAD also does backups recursively. For example, if I schedule 3 backups 5 minutes apart, he runs backups .bk1, .bk2, .bk3 regularly every 5 minutes, after these, .bk3=.bk2, .bk2=.bk1, and .bk3 is the new backup.

I activated the backup out of necessity and with tight deadlines so as not to lose changes in the event of a crash and as there are, unfortunately, I lost important points several times in the project phase.
I have noticed that it doesn't always restore to the point before the crash but sometimes many steps before.
I repeat, what you suggest is correct and I do it systematically when I intend to save the project in key points, but that is something totally different from the important function of the backup.

HI,
Tiziano.

Re: The backup overwrites the original file!

Hi Tiziano,
thanks for feeddback, interresting if we can add automatic incremental backup like you say.

backups .bk1, .bk2, .bk3 regularly every 5 minutes, after these, .bk3=.bk2, .bk2=.bk1, and .bk3 is the new backup.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: The backup overwrites the original file!

Hi, Laurent

Great!
it is an option that gives a better touch to the project.
While you're at it .... I propose some interesting solutions:

1) If the file is "read only" it still allows you to work and only blocks saving, as happens in the element editor.
2) Adding i/I key as "zoom IN" command, o/O key as "zoom OUT" and c/C key as "zoom center", I think it's also easy to implement.
It helps a lot when you have the mouse busy holding an object or when you need to draw a line and you're off the screen...

A thank you.
HI.

Re: The backup overwrites the original file!

QET backup is based on KDE framework  KCoreAddons (KAutoSaveFile)

https://api.kde.org/frameworks/kcoreadd … eFile.html

https://git.tuxfamily.org/qet/qet.git/t … .cpp#n1896

Maybe possible to extend it with https://api.kde.org/frameworks/kcoreadd … ackup.html

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: The backup overwrites the original file!

tiz.meneghe wrote:

Hi, Laurent
2) Adding i/I key as "zoom IN" command, o/O key as "zoom OUT" and c/C key as "zoom center", I think it's also easy to implement.
It helps a lot when you have the mouse busy holding an object or when you need to draw a line and you're off the screen...
.

+1

QElectroTech V 0.100.0-dev - iMac macOS Monterey 12.6.3 - MacMini macOS Ventura

9 (edited by Joshua 2023-03-28 21:40:35)

Re: The backup overwrites the original file!

With the link given by Scoprio https://api.kde.org/frameworks/kcoreadd … ackup.html
we can do the backup1 ,2 , 3 etc... files. I add it in the todolist, but don't expect to have it soon, I'm very busy and this feature is not essential.

@tiz
I think you don't understand well.
There are two save in QElectrotech.

1-There is periodic save in QElectrotech and this one write in your file (it's the goal) and so you "lose" work if you have made some change but you don't want to keep it. This feature can be disabled in the properties.

2- There is an automatic and periodic save of the current state of your work (every 2min) but this save is made in another file. I you close QElectroTech this file is deleted. If a crash occur, the next time you open QElectroTech a dialog ask you if you want to restore or not this file. If you click no, the file is not open and is deleted. If you click yes QElectroTech open this file, this is transparent for you and you can continue to work on it (click on save will save in your file)

Développeur QElectroTech

Re: The backup overwrites the original file!

rvamerongen wrote:
tiz.meneghe wrote:

Hi, Laurent
2) Adding i/I key as "zoom IN" command, o/O key as "zoom OUT" and c/C key as "zoom center", I think it's also easy to implement.
It helps a lot when you have the mouse busy holding an object or when you need to draw a line and you're off the screen...
.

+1

On Linux, Windows
Diagram:
https://download.qelectrotech.org/qet/forum_img_2/zoom_keys.png

Element editor:

https://download.qelectrotech.org/qet/forum_img_2/zoom_keys2.png

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: The backup overwrites the original file!

macOS
https://download.qelectrotech.org/qet/forum_img_2/macos-zoom-keys.pnghttps://download.qelectrotech.org/qet/forum_img_2/macos-zoom-keys2.png

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: The backup overwrites the original file!

yes, but you need the hand and fingers of a... frog.

già, però servono la mano e le dita di una... rana.

nomicons/smile
nomicons/tongue

Re: The backup overwrites the original file!

it can be done...
You who are good at tinkering with Linux, Laurente, how do I create keyboard shortcuts in Linux (kubuntu)?

in case:
alt+1= ctrl+ (zoom in)
alt+2= ctrl- (zoom out)
alt+3= ctrl8 (center)

Thanks

14 (edited by tiz.meneghe 2023-03-29 14:54:53)

Re: The backup overwrites the original file!

keyboard is key short Mac...

obvious that they must work only in QE work..

ciao.

Re: The backup overwrites the original file!

https://kasikcz.medium.com/en-macos-key … 0299d5cff5


https://docs.kde.org/stable5/en/khelpce … plication.

https://www.reddit.com/r/kde/comments/c … _osx_like/

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: The backup overwrites the original file!

https://alain.arditi.fr/2020/04/18/reco … -vm-linux/

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: The backup overwrites the original file!

For zooming, most of the time I use a 3D-Connection mouse.

Unfortunate a 3D-Connexion navigator is not really working, but do make use of the short cuts list for some actions.

QElectroTech V 0.100.0-dev - iMac macOS Monterey 12.6.3 - MacMini macOS Ventura

Re: The backup overwrites the original file!

A QET user send me a 3D-mouse (spacepilot pro) but is very hard to add it in QET code, see:
https://qelectrotech.org/forum/viewtopic.php?id=2190
https://qelectrotech.org/forum/viewtopi … 941#p15941

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: The backup overwrites the original file!

rvamerongen wrote:

For zooming, most of the time I use a 3D-Connection mouse.

Unfortunate a 3D-Connexion navigator is not really working, but do make use of the short cuts list for some actions.

Can you use your 3D mouse with QET, does it work?

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."