Page 1 of 1

[REQ] File-Compare Editmode: Backups only optional

Posted: 2007-04-14, 19:20 UTC
by StatusQuo
A new .BAK-file is created everytime when saving a changed file in File / Compare By Content / Editmode.
I personally already have backups of almost everything, so from my point of view these additional .BAK-files are just a waste of disk space - in most cases.

=> Could creation of .BAK-file please be made optional?
An additional checkbox in the GUI would probably be more than what is needed, a switch in WinCmd.INI would be enough for me.

Posted: 2007-04-14, 20:11 UTC
by petermad
I suggest the folllowing change:
CompareSaveOriginal=1
1: When saving, the file is copied to filename.bak, then the data is written to filename. Advantage: additional streams, special attributes etc. are preserved.
0: When saving, the data is written to filename.tmp, then the file is renamed to filename.bak, and finally filename.tmp is renamed to filename. Advantage: The file has to be written only once, and remains intact in case of a write error.
Could be changed to:
CompareSave=1
0: No backup file is created when saving changes to a file in the Compare by Content tool.
1: When saving, the file is copied to filename.bak, then the data is written to filename. Advantage: additional streams, special attributes etc. are preserved.
2: When saving, the data is written to filename.tmp, then the file is renamed to filename.bak, and finally filename.tmp is renamed to filename. Advantage: The file has to be written only once, and remains intact in case of a write error.

Zero missing

Posted: 2007-04-14, 21:11 UTC
by Clo
2petermad

:) Hello Peter !

• The “0” flag is indeed missing, I support your suggestion.

• And I close my ears about some «security reasons» we could get as a pie-answer… :lol:

:mrgreen: FR
Claude
Clo

Posted: 2007-04-15, 14:37 UTC
by Stance
And heeere is ghisler(Author)'s answer: :!:
File-Compare, Editmode: Backup destroys NTFS File-Hardlinks

Posted: 2007-09-24, 01:28 UTC
by StatusQuo
(Bump) - How about the option to automatically delete the backup file after closing the Compare window,
as suggested in File-Compare, Editmode: Backup destroys NTFS File-Hardlinks ?

Posted: 2007-09-24, 16:43 UTC
by ghisler(Author)
At the moment I still consider this as too risky. The compare tool may have some yet undetected errors. Maybe I will add it in 1-2 years...

Posted: 2007-09-24, 18:26 UTC
by sas2000
 
ghisler(Author) wrote:Maybe I will add it in 1-2 years...
         :shock: :shock: :shock:
        
 

Posted: 2008-04-20, 17:12 UTC
by StatusQuo
Another idea: how about creating the backup-files in the system temp dir, like

Code: Select all

%TEMP%\_tcbak\drive\path\*.*.bak
?
I wouldn't mind if I had to turn on an option for this, of course. ;)

Posted: 2008-05-30, 22:12 UTC
by StatusQuo
Workaround for the meantime, until the backup files can be deleted by TC:
AutoHotkey: Auto-Delete BAK-files created by TC's File-Compare-Editor

(For those who trust TC's editor, use at your own risk.
The files are moved to recycle bin, if possible - no guarantee though.)